/* =========================================================
   TEKNOTIKA MODERN SIDEBAR MENU
   Teknologi dan Informatika
   ========================================================= */

.teknotika-menu,
.teknotika-menu * {
    box-sizing: border-box;
}

.teknotika-menu {
    --tm-primary: #082f49;
    --tm-secondary: #075985;
    --tm-accent: #06b6d4;
    --tm-accent-dark: #0891b2;
    --tm-light: #f0f9ff;
    --tm-border: #dbeafe;
    --tm-text: #1e293b;
    --tm-muted: #64748b;

    width: 100%;
    margin: 0 auto 22px;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    border: 1px solid var(--tm-border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(8, 47, 73, 0.12);
}

/* Header */

.teknotika-menu .tm-header {
    position: relative;
    padding: 24px 18px 21px;
    overflow: hidden;
    text-align: center;
    color: #ffffff;
    background:
        radial-gradient(
            circle at top right,
            rgba(34, 211, 238, 0.32),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            var(--tm-primary) 0%,
            var(--tm-secondary) 100%
        );
}

.teknotika-menu .tm-header::after {
    position: absolute;
    right: -30px;
    bottom: -55px;
    width: 130px;
    height: 130px;
    content: "";
    border: 18px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.teknotika-menu .tm-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1.2px;
    color: #cffafe;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
}

.teknotika-menu .tm-title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 1px;
    color: #ffffff;
}

.teknotika-menu .tm-subtitle {
    position: relative;
    z-index: 1;
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #dff7ff;
}

/* ISSN Information */

.teknotika-menu .tm-issn {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 13px;
    background: var(--tm-light);
    border-bottom: 1px solid var(--tm-border);
}

.teknotika-menu .tm-issn-box {
    min-width: 0;
    padding: 10px 7px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: 9px;
}

.teknotika-menu .tm-issn-label {
    display: block;
    margin-bottom: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.7px;
    color: var(--tm-muted);
    text-transform: uppercase;
}

.teknotika-menu .tm-issn-number {
    display: block;
    overflow-wrap: anywhere;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--tm-primary);
}

/* Submit Button */

.teknotika-menu .tm-action {
    padding: 14px 13px 5px;
    background: #ffffff;
}

.teknotika-menu .tm-submit {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: linear-gradient(
        135deg,
        var(--tm-accent-dark),
        var(--tm-accent)
    );
    border: none;
    border-radius: 9px;
    box-shadow: 0 5px 14px rgba(6, 182, 212, 0.25);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.teknotika-menu .tm-submit:hover,
.teknotika-menu .tm-submit:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #0e7490, #0891b2);
    box-shadow: 0 7px 17px rgba(6, 182, 212, 0.35);
    transform: translateY(-2px);
}

/* Menu Groups */

.teknotika-menu .tm-section {
    padding: 10px 13px 2px;
}

.teknotika-menu .tm-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 7px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.8px;
    color: var(--tm-secondary);
    text-transform: uppercase;
}

.teknotika-menu .tm-section-title::before {
    width: 4px;
    height: 14px;
    content: "";
    background: var(--tm-accent);
    border-radius: 5px;
}

.teknotika-menu .tm-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.teknotika-menu .tm-list li {
    margin: 0 0 5px;
    padding: 0;
    list-style: none;
}

/* Menu Links */

.teknotika-menu .tm-link {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--tm-text) !important;
    text-decoration: none !important;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.teknotika-menu .tm-link:hover,
.teknotika-menu .tm-link:focus {
    color: var(--tm-secondary) !important;
    text-decoration: none !important;
    background: var(--tm-light);
    border-color: #bae6fd;
    transform: translateX(3px);
}

.teknotika-menu .tm-icon {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--tm-secondary);
    background: #e0f2fe;
    border-radius: 7px;
}

.teknotika-menu .tm-link:hover .tm-icon,
.teknotika-menu .tm-link:focus .tm-icon {
    color: #ffffff;
    background: var(--tm-accent-dark);
}

.teknotika-menu .tm-link-text {
    flex: 1 1 auto;
}

.teknotika-menu .tm-arrow {
    flex: 0 0 auto;
    margin-left: 7px;
    font-size: 15px;
    font-weight: 700;
    color: #94a3b8;
}

.teknotika-menu .tm-link:hover .tm-arrow,
.teknotika-menu .tm-link:focus .tm-arrow {
    color: var(--tm-accent-dark);
}

/* Login and Register */

.teknotika-menu .tm-account {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 13px 14px;
}

.teknotika-menu .tm-account-link {
    display: block !important;
    padding: 10px 7px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    color: var(--tm-secondary) !important;
    text-decoration: none !important;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.teknotika-menu .tm-account-link:hover,
.teknotika-menu .tm-account-link:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    background: var(--tm-secondary);
    border-color: var(--tm-secondary);
    transform: translateY(-2px);
}

/* Footer */

.teknotika-menu .tm-footer {
    padding: 12px 14px;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
    color: var(--tm-muted);
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.teknotika-menu .tm-footer strong {
    color: var(--tm-primary);
}

/* Responsive */

@media screen and (max-width: 360px) {
    .teknotika-menu .tm-issn,
    .teknotika-menu .tm-account {
        grid-template-columns: 1fr;
    }

    .teknotika-menu .tm-title {
        font-size: 19px;
    }
}