﻿/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
    --primary: #3252DF;
    --primary-dark: #152C5B;
    --text-dark: #152C5B;
    --text-muted: #B0B0B0;
    --text-light: #6B7280;
    --border-light: #E5E7EB;
    --bg-light: #F8F9FF;
    --white: #FFFFFF;
    --star-yellow: #FFC107;
}

/* ── BASE ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.divider {
    height: 1px;
    width: 100%;
    background-color: #E5E5E5;
}


/* ── BRAND (shared by navbar + footer) ─────────────────────── */
.ls-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.ls-brand span {
    color: var(--primary);
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
.ls-navbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.ls-navbar .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.4rem 0.85rem !important;
    transition: color 0.2s;
}

.ls-navbar .nav-link:hover,
.ls-navbar .nav-link.active {
    color: var(--primary);
}

.btn-login {
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.45rem 1.25rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-login:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ── FOOTER UPPER ───────────────────────────────────────────── */
.ls-footer-upper {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 3rem 0 2.5rem;
}

.ls-footer-brand {
    margin-bottom: 0.6rem;
}

.ls-footer-upper p {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 240px;
    line-height: 1.6;
    margin: 0;
}

/* ── FOOTER CTA ─────────────────────────────────────────────── */
.ls-footer-cta h6 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.85rem;
}

.btn-register {
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.55rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-register:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ── FOOTER BOTTOM ──────────────────────────────────────────── */
.ls-footer-bottom {
    background: var(--primary);
    padding: 0.9rem 0;
    text-align: center;
}

.ls-footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 400;
}

/* ── ERROR MODAL ────────────────────────────────────────────── */
.modal-content.error-modal {
    border: none;
    border-radius: 14px;
    overflow: hidden;
}

.error-modal .modal-header {
    background: #EF4444;
    color: #fff;
    border: none;
    padding: 1rem 1.25rem;
}

 .error-modal .modal-header .modal-title {
     font-weight: 700;
     font-size: 0.95rem;
 }

.error-modal .modal-body {
    padding: 1.25rem;
}

.error-modal .modal-body p {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
}

.error-modal .modal-footer {
    border: none;
    padding: 0.75rem 1.25rem;
}
/* ── NAVBAR AVATAR ──────────────────────────────────────────── */
.ls-avatar-btn {
    background: none;
    cursor: pointer;
}

.ls-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    transition: opacity 0.2s;
}

    .ls-avatar-img:hover {
        opacity: 0.85;
    }

.ls-avatar-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

    .ls-avatar-initials:hover {
        opacity: 0.85;
    }

/* ── PROFILE MODAL ──────────────────────────────────────────── */
.modal-content.profile-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.profile-modal .modal-header {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 1rem 1.25rem;
}

    .profile-modal .modal-header .modal-title {
        font-weight: 700;
        font-size: 0.95rem;
    }

.profile-avatar-wrap {
    display: flex;
    justify-content: center;
}

.profile-avatar-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.profile-avatar-initials {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-input {
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

    .profile-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(61, 90, 241, 0.12);
        outline: none;
    }

.btn-upload-photo {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-upload-photo:hover {
        background: var(--primary-dark);
    }

.btn-delete-avatar {
    background: none;
    border: 1px solid #EF4444;
    color: #EF4444;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-delete-avatar:hover {
        background: #EF4444;
        color: #fff;
    }

.btn-save-profile {
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

    .btn-save-profile:hover {
        background: var(--primary-dark);
    }

.btn-crop-tool {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-crop-tool:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }
.avatar-camera-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}

.btn-change-photo {
    display: inline-flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s;
}

    .btn-change-photo:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

.profile-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 500;
}

/* ── Navbar Auth Buttons ─────────────────────────── */

.btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

    .btn-dashboard:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 14px rgba(102, 126, 234, 0.45);
        color: #fff;
    }

    .btn-dashboard i {
        font-size: 0.95rem;
    }

.btn-logout-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e74a3b;
    background: transparent;
    border: 1.5px solid #e74a3b !important;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

    .btn-logout-outline:hover {
        background: #e74a3b;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 14px rgba(231, 74, 59, 0.35);
    }

/* ── Avatar button polish ────────────────────────── */
.ls-avatar-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .ls-avatar-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
        border-radius: 50%;
    }

/* ── User Dropdown Pill ───────────────────────────── */
.ls-user-dropdown {
    position: relative;
}

.ls-user-pill {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.3rem 0.75rem 0.3rem 0.3rem;
    cursor: pointer;
    transition: all 0.25s ease;
    color: inherit;
}

    .ls-user-pill:hover {
        background: rgba(255, 255, 255, 0.13);
        border-color: rgba(255, 255, 255, 0.3);
    }

    /* remove bootstrap's default dropdown caret gap */
    .ls-user-pill::after {
        margin-left: 0.4rem;
        opacity: 0.6;
    }

.ls-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.ls-avatar-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ls-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.ls-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.ls-user-role {
    font-size: 0.7rem;
    opacity: 0.65;
}

/* ── Dropdown Menu ───────────────────────────────── */
.ls-dropdown-menu {
    min-width: 180px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 0.4rem;
    margin-top: 0.5rem !important;
}

.ls-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.2s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

    .ls-dropdown-item i {
        font-size: 1rem;
        color: #667eea;
        width: 18px;
    }

    .ls-dropdown-item:hover {
        background: #f0f2ff;
        color: #667eea;
    }

.ls-logout-item i {
    color: #e74a3b;
}

.ls-logout-item:hover {
    background: #fff0ef;
    color: #e74a3b;
}

.dropdown-divider {
    margin: 0.25rem 0.5rem;
    opacity: 0.1;
}