/* User pages theme – consistent with home (buttons, colors) */
@import url("user-theme.css");

/* Header background and reduced height */
.navbar.navbar-dark {
    background-color: #13201e !important;
    border-bottom: 1px solid rgba(157, 224, 214, 0.15);
    min-height: 48px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
.navbar .container-fluid {
    min-height: 48px;
}

/* Change Password in nav: high contrast (white text on orange) */
.navbar .btn-outline-warning {
    background: #e65100 !important;
    color: #fff !important;
    border-color: #ff8f00 !important;
}
.navbar .btn-outline-warning:hover {
    background: #ff8f00 !important;
    color: #fff !important;
    border-color: #ff8f00 !important;
}

/* Header nav: consistent link color and font */
.user-header-nav {
    gap: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
}
.user-header-welcome {
    color: #9de0d6;
    margin-right: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
}
.user-header-sep {
    color: rgba(157, 224, 214, 0.5);
    margin: 0 0.35rem;
    user-select: none;
    font-size: 0.75rem;
}
.user-header-link,
.user-header-link-btn {
    color: #9de0d6 !important;
    text-decoration: none;
    background: none !important;
    border: none !important;
    padding: 0.2rem 0;
    cursor: pointer;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    transition: color 0.15s ease, opacity 0.15s ease;
}
.user-header-link:hover,
.user-header-link-btn:hover {
    color: #45ebd1 !important;
    text-decoration: underline;
}
.user-header-link-logout,
.user-header-link-logout:hover {
    color: #9de0d6 !important;
}
.user-header-link-logout:hover {
    color: #45ebd1 !important;
}
.user-header-link i {
    margin-right: 0.35rem;
    opacity: 0.9;
}
@media (max-width: 768px) {
    .user-header-nav {
        font-size: 0.75rem;
    }
    .user-header-welcome,
    .user-header-link,
    .user-header-link-btn {
        font-size: 0.75rem !important;
    }
    .user-header-sep {
        margin: 0 0.25rem;
    }
}

/* Professional Dashboard button - primary nav action (kept for card/standalone use) */
.btn-dashboard,
a.btn-dashboard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid rgba(157, 224, 214, 0.4);
    background: linear-gradient(135deg, rgba(28, 139, 122, 0.25) 0%, rgba(20, 182, 128, 0.2) 100%);
    color: #9de0d6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.btn-dashboard:hover,
a.btn-dashboard:hover {
    background: linear-gradient(135deg, #1c8b7a 0%, #14b680 100%);
    color: #0a1614;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(28, 139, 122, 0.35);
    transform: translateY(-1px);
}
.btn-dashboard:active,
a.btn-dashboard:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(28, 139, 122, 0.3);
}
.btn-dashboard i,
a.btn-dashboard i {
    font-size: 0.95em;
    margin-right: 0.4rem;
}

/* Standalone card context (e.g. Incomplete Exam page) */
.btn-dashboard-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid rgba(28, 139, 122, 0.35);
    background: linear-gradient(135deg, #1c8b7a 0%, #14b680 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(28, 139, 122, 0.25);
}
.btn-dashboard-card:hover {
    color: #fff;
    box-shadow: 0 4px 14px rgba(28, 139, 122, 0.4);
    transform: translateY(-1px);
}
.btn-dashboard-card i {
    margin-right: 0.5rem;
    font-size: 0.95em;
}

.navbar .container {
    padding-left: 0;
    margin-left: 0;
}

.brainzyx-custom-logo {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 0.5rem 15px;
    margin-right: 1.5rem;
    margin-left: 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.brainzyx-custom-logo:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* Match home page: tight spacing between B icon and "rainzyx", same size and kerning */
.brainzyx-custom-logo .logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.brainzyx-custom-logo .logo-image {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.brainzyx-custom-logo .logo-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #9de0d6;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-left: -12px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.logo-main {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    gap: 0.15em;
    position: relative;
}

.word-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.brain-container {
    align-items: flex-end;
}

.zyx-container {
    align-items: flex-start;
}

.word-with-arrow {
    display: flex;
    align-items: center;
    gap: 0.2em;
}

.logo-word {
    background: linear-gradient(120deg, #8df8ff, #00b4ff 45%, #7d6bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.arrow-forward-single {
    color: #00ff88;
    font-weight: 900;
    font-size: 0.85em;
    text-shadow: 0 0 4px rgba(0, 255, 136, 0.6);
    animation: pulse-arrow 2s ease-in-out infinite;
    line-height: 1;
}

.arrow-backward-single {
    color: #ffd700;
    font-weight: 900;
    font-size: 0.85em;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
    animation: pulse-arrow 2s ease-in-out infinite;
    line-height: 1;
}

.tagline-top,
.tagline-bottom {
    font-size: 0.45rem;
    text-transform: none;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-style: italic;
    white-space: nowrap;
    line-height: 1.2;
    margin: 0.15em 0 0.05em 0;
}

.tagline-top {
    text-align: right;
}

.tagline-bottom {
    text-align: left;
}

@keyframes pulse-arrow {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.navbar-brand-with-logo {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 0;
    margin-right: 1rem;
}

/* Logo image styling for navbar headers */
.brainzyx-logo-img {
    height: 42px;
    width: auto;
    max-width: 220px;
    display: block;
    transition: opacity 0.2s ease;
}

.brainzyx-logo-img:hover {
    opacity: 0.85;
}

/* Logo image styling for landing pages */
.brainzyx-logo-img-landing {
    height: 40px;
    width: auto;
    max-width: 200px;
    display: block;
    transition: opacity 0.2s ease;
}

.brainzyx-logo-img-landing:hover {
    opacity: 0.85;
}

/* Legacy text-based logo styles (kept for backward compatibility) */
.brand-logotype {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(120deg, #8df8ff, #00b4ff 45%, #7d6bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 14px rgba(0, 180, 255, 0.55);
}

.brand-logotype span {
    display: inline-block;
}

.brand-tagline {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.45em;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.15rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brainzyx-logo-img {
        height: 36px;
        max-width: 180px;
    }

    .brainzyx-logo-img-landing {
        height: 34px;
        max-width: 170px;
    }

    .logo-main {
        font-size: 1.2rem;
        gap: 0.1em;
    }

    .tagline-top,
    .tagline-bottom {
        font-size: 0.4rem;
    }

    .arrow-forward-single,
    .arrow-backward-single {
        font-size: 0.75em;
    }

    .word-with-arrow {
        gap: 0.15em;
    }

    .logo-icon svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 576px) {
    .brainzyx-logo-img {
        height: 32px;
        max-width: 160px;
    }

    .brainzyx-logo-img-landing {
        height: 30px;
        max-width: 150px;
    }

    .brand-logotype {
        font-size: 1.1rem;
    }

    .brand-tagline {
        letter-spacing: 0.3em;
        font-size: 0.6rem;
    }

    .logo-main {
        font-size: 1.05rem;
        gap: 0.08em;
    }

    .tagline-top,
    .tagline-bottom {
        font-size: 0.35rem;
        letter-spacing: 0.08em;
        margin: 0.1em 0 0.03em 0;
    }

    .arrow-forward-single,
    .arrow-backward-single {
        font-size: 0.7em;
    }

    .word-with-arrow {
        gap: 0.1em;
    }

    .logo-icon svg {
        width: 24px;
        height: 24px;
    }

    .logo-wrapper {
        gap: 0.5rem;
    }

    .brainzyx-custom-logo {
        padding: 0.5rem 10px;
    }
}

/* Ensure logo is visible on dark backgrounds */
.navbar-dark .brainzyx-logo-img,
.navbar-dark .brainzyx-logo-img-landing {
    filter: brightness(1.1);
}

/* Ensure logo is visible on light backgrounds */
.navbar-light .brainzyx-logo-img,
.navbar-light .brainzyx-logo-img-landing {
    filter: brightness(0.95);
}