﻿/* =========================================================
   CANDIDATE LAYOUT
========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f7f9fc;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   HEADER
========================================================= */

.candidate-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e8edf3;
}

.candidate-header-inner {
    min-height: 72px;
    padding: 0 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


/* =========================================================
   BRAND
========================================================= */

.candidate-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111827;
    font-size: 23px;
    font-weight: 700;
    white-space: nowrap;
}

.candidate-logo {
    width: auto;
    height: 38px;
    object-fit: contain;
}


/* =========================================================
   NAVIGATION
========================================================= */

.candidate-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.candidate-nav-link {
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s ease;
}

    .candidate-nav-link i {
        margin-right: 5px;
    }

    .candidate-nav-link:hover {
        background: #f1f5f9;
        color: #2563eb;
    }


/* =========================================================
   HEADER RIGHT
========================================================= */

.candidate-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* =========================================================
   ICON BUTTON
========================================================= */

.candidate-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    color: #4b5563;
    transition: 0.2s ease;
}

    .candidate-icon-btn:hover {
        background: #f1f5f9;
        color: #2563eb;
    }

    .candidate-icon-btn i {
        font-size: 18px;
    }

.candidate-notification-badge {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 20px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   PROFILE
========================================================= */

.candidate-profile-dropdown {
    position: relative;
}

.candidate-profile-btn {
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 8px;
    border-radius: 8px;
    cursor: pointer;
}

    .candidate-profile-btn:hover {
        background: #f5f7fa;
    }

    .candidate-profile-btn img {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        object-fit: cover;
    }

.candidate-header-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.candidate-profile-btn i {
    font-size: 12px;
    color: #6b7280;
}


/* =========================================================
   PROFILE DROPDOWN MENU
========================================================= */

.candidate-profile-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 250px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.10);
    padding: 8px;
    display: none;
}

    .candidate-profile-menu.show {
        display: block;
    }

.candidate-profile-menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

    .candidate-profile-menu-header img {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        object-fit: cover;
    }

    .candidate-profile-menu-header strong {
        display: block;
        font-size: 14px;
    }

    .candidate-profile-menu-header small {
        color: #6b7280;
    }

.candidate-profile-menu > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 7px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
}

    .candidate-profile-menu > a:hover {
        background: #f5f7fa;
    }

.candidate-profile-menu .candidate-logout {
    color: #dc2626;
}

.candidate-profile-divider {
    height: 1px;
    background: #edf0f3;
    margin: 6px 0;
}


/* =========================================================
   MOBILE BUTTON
========================================================= */

.candidate-mobile-btn {
    display: none;
    border: 0;
    background: transparent;
    font-size: 25px;
    color: #374151;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.candidate-mobile-menu {
    display: none;
    border-top: 1px solid #edf0f3;
    background: #ffffff;
    padding: 10px 20px;
}

    .candidate-mobile-menu.show {
        display: block;
    }

    .candidate-mobile-menu a {
        display: block;
        padding: 12px 8px;
        color: #374151;
        text-decoration: none;
        border-bottom: 1px solid #f0f2f5;
    }

        .candidate-mobile-menu a i {
            margin-right: 8px;
        }


/* =========================================================
   MAIN
========================================================= */

.candidate-main {
    min-height: calc(100vh - 72px);
    padding: 30px 0 50px;
}

.candidate-page-container {
    width: min(1400px, calc(100% - 40px));
    margin: auto;
}

.candidate-footer {
    background: #ffffff;
    border-top: 1px solid #e7ebf0;
    padding: 45px 0 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    margin-bottom: 12px;
}

    .footer-brand img {
        width: 160px;
        height: 90px;
        object-fit: contain;
    }

.footer-description {
    max-width: 360px;
    color: #6b7280;
    line-height: 1.7;
    font-size: 14px;
}

.candidate-footer h6 {
    font-weight: 700;
    margin-bottom: 14px;
}

.candidate-footer a {
    display: block;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 9px;
}

    .candidate-footer a:hover {
        color: #2563eb;
    }

.footer-support-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    font-weight: 600;
}

.footer-bottom {
    margin-top: 35px;
    padding: 18px 0;
    border-top: 1px solid #edf0f3;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #8a94a6;
    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .candidate-header-inner {
        padding: 0 20px;
    }

    .candidate-nav {
        display: none;
    }

    .candidate-mobile-btn {
        display: block;
    }

    .candidate-header-name {
        display: none;
    }
}


@media (max-width: 575px) {

    .candidate-header-inner {
        min-height: 64px;
        padding: 0 14px;
    }

    .candidate-brand {
        font-size: 20px;
    }

    .candidate-logo {
        width: 32px;
        height: 32px;
    }

    .candidate-icon-btn {
        width: 34px;
        height: 34px;
    }

    .candidate-profile-btn img {
        width: 34px;
        height: 34px;
    }

    .candidate-profile-menu {
        right: -5px;
        width: 230px;
    }

    .candidate-main {
        padding-top: 20px;
    }

    .candidate-page-container {
        width: calc(100% - 24px);
    }

    .footer-bottom {
        flex-direction: column;
    }
}
