/* 
   management.vebendeakademi.com.tr - Premium Design System
   Refined for High-Fidelity UI & Rich Aesthetics
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Sidebar */
    --sidebar-bg: #0d1117;
    --sidebar-hover: #161b22;
    --sidebar-text: #8b949e;
    --sidebar-text-active: #ffffff;

    /* Color Palette - Main */
    --main-bg: #f0f2f5;
    --header-bg: #ffffff;
    --text-dark: #1f2328;
    --text-muted: #656d76;

    /* Accents */
    --blue: #0969da;
    --blue-glow: rgba(9, 105, 218, 0.15);
    --green-glow: rgba(35, 134, 54, 0.15);
    --danger-glow: rgba(207, 34, 46, 0.15);
    --orange: #f97316;
    --green: #238636;
    --purple: #8250df;
    --danger: #cf222e;
    --border-color: #d0d7de;
    --badge-bg: #f3f4f6;

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 70px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.18);
    --shadow-glow-blue: 0 0 0 1px rgba(9, 105, 218, 0.25), 0 4px 16px rgba(9, 105, 218, 0.12);
    --shadow-glow-orange: 0 0 0 1px rgba(249, 115, 22, 0.25), 0 4px 16px rgba(249, 115, 22, 0.12);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --card-bg: #ffffff;
    --sidebar-indicator: var(--orange);
}

/* Dark Mode Configuration - Removed from here and moved to the end for better override control */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--main-bg);
    color: var(--text-dark);
    overflow: hidden;
}

.layout-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.sidebar-header {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    background: var(--blue);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px var(--blue-glow);
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brand {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.2px;
}

.sub-brand {
    font-size: 0.65rem;
    letter-spacing: 0.8px;
    font-weight: 600;
    color: #8250df;
    /* Reference purple */
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-category {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--orange);
    padding: 1.25rem 1rem 0.5rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

.nav-category::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(249, 115, 22, 0.2), transparent);
    border-radius: 1px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.85rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    margin-bottom: 2px;
    transition: var(--transition);
    position: relative;
    border-left: 3px solid transparent;
}

.nav-item i:not(.add-btn) {
    width: 24px;
    margin-right: 12px;
    font-size: 1rem;
    opacity: 0.65;
    transition: var(--transition);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: rgba(249, 115, 22, 0.4);
}

.nav-item:hover i:not(.add-btn) {
    opacity: 0.9;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.12), rgba(249, 115, 22, 0.03));
    color: white;
    border-left-color: var(--orange);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.nav-item.active i:not(.add-btn) {
    color: var(--orange);
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.4));
}

.badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.add-btn {
    margin-left: 10px;
    color: var(--orange);
    font-size: 0.8rem;
    opacity: 0.5;
}

.add-btn:hover {
    opacity: 1;
}

.sidebar-footer {
    padding: 0.8rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--blue);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.user-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.user-name {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.user-role {
    font-size: 0.7rem;
    color: var(--sidebar-text);
}

.logout-btn {
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--sidebar-text);
    transition: var(--transition);
    padding: 5px;
}

.logout-btn:hover {
    color: var(--danger);
    transform: translateX(3px);
}

/* --- MAIN CONTAINER --- */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-header {
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    justify-content: space-between;
    box-shadow: 0 1px 0 var(--border-color), var(--shadow-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-left h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
}

.header-icons i {
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.header-icons i:hover {
    color: var(--blue);
}

.header-search {
    position: relative;
    width: 300px;
    transition: var(--transition);
}

.header-search:focus-within {
    width: 350px;
}

.header-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 5;
}

.header-search input {
    width: 100%;
    padding: 10px 45px 10px 45px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.03);
    font-size: 0.85rem;
    transition: var(--transition);
    color: var(--text-dark);
    height: 42px;
}

.search-clear-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    height: 42px;
}

.header-search input:not(:placeholder-shown)~.search-clear-btn {
    display: flex;
}

.header-search input:focus {
    outline: none;
    background: white;
    border-color: var(--blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.current-time {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: var(--transition);
}

.icon-btn:hover {
    background: #f1f5f9;
    color: var(--blue);
}

/* --- APP CONTENT --- */
#app {
    padding: 0.75rem 2rem 2rem 2rem;
    overflow-y: auto;
    background: var(--main-bg);
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

#app::-webkit-scrollbar {
    width: 6px;
}

#app::-webkit-scrollbar-track {
    background: transparent;
}

#app::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
    transition: background 0.2s;
}

#app::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.action-bar h3,
.action-bar p {
    margin: 0;
}

.card-white {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: auto;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-dark);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 1.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.data-table tr:last-child {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--blue-glow);
}

.data-table tbody tr:hover td:first-child {
    border-left: 2px solid var(--blue);
    padding-left: calc(1rem - 2px);
}

.data-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.012);
}

.data-table td {
    padding: 1.15rem 1rem;
    vertical-align: middle;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    background: var(--badge-bg);
    color: var(--text-dark);
    white-space: nowrap;
}

.year-selector {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--orange);
}

/* --- BUTTONS --- */
.btn-premium {
    background: var(--blue);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-premium:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--blue-glow);
}

.btn-outline {
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-outline:hover {
    border-color: var(--blue);
    background: var(--blue-glow);
    color: var(--blue);
}

.btn-danger-outline {
    background: var(--card-bg);
    border: 1.5px solid var(--danger);
    color: var(--danger);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger-outline:hover {
    background: var(--danger);
    color: white;
}

/* --- FORM ELEMENTS --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text-dark);
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(9, 105, 218, 0.1);
}

textarea.form-control {
    font-family: inherit;
    resize: none;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group .btn-icon {
    width: 44px;
    height: 44px;
    background: white;
    border: 1.5px solid var(--blue);
    color: var(--blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.input-group .btn-icon:hover {
    background: var(--blue);
    color: white;
}

/* --- SPECIAL SETTINGS ELEMENTS --- */
.pin-display {
    background: var(--main-bg);
    padding: 0 1.5rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--text-dark);
    border: 1.5px dashed var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
}

/* --- DATA TABLE --- */

.status-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-soft {
    background: #f3f4f6;
    color: var(--text-dark);
}

/* --- MARKDOWN PREVIEW STYLES --- */
.markdown-body {
    line-height: 1.6;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.markdown-body h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--purple);
    border-bottom: 2px solid var(--purple);
    padding-bottom: 8px;
}

.markdown-body h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.markdown-body h2::before {
    content: '•';
    color: var(--orange);
    font-weight: 900;
}

.markdown-body p {
    margin-bottom: 1rem;
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

.markdown-body code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--danger);
}

.markdown-body blockquote {
    border-left: 4px solid var(--border-color);
    padding-left: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 1.5rem 0;
}

.markdown-body hr {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 2rem 0;
}

#curriculum-editor-wrapper:hover {
    border-color: var(--blue) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* --- NEW LOGIN SPLIT DESIGN --- */
.login-split-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    background: var(--card-bg);
}

.login-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    position: relative;
}

.login-image-side {
    flex: 1.2;
    background: url('../img/login_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 4rem;
}

.forgot-image-side {
    flex: 1.2;
    background: url('../img/forgot_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 4rem;
}

.login-image-side::before,
.forgot-image-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.testimonial-box {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 500px;
}

.testimonial-quote {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--blue);
}

.login-header {
    margin-bottom: 3rem;
}

.login-logo-flat {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.login-logo-flat .icon {
    width: 32px;
    height: 32px;
    background: var(--blue);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.login-logo-flat .text {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--sidebar-bg);
}

.login-title-area h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--sidebar-bg);
}

.login-title-area h1 span {
    color: var(--purple);
}

.login-title-area p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 400px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.login-copyright {
    position: absolute;
    bottom: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- DASHBOARD STATS --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* --- STUDENT LIST & ACTION BAR --- */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    margin: -1rem -2rem 1.5rem -2rem;
    /* Pull header to edges */
    min-height: 65px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.search-box {
    flex: 1;
    position: relative;
    max-width: 500px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 50px;
    border: 1px solid var(--orange);
    background: var(--card-bg);
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px var(--blue-glow);
}

.search-box input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(9, 105, 218, 0.1);
}

.filter-group {
    display: flex;
    gap: 12px;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.btn-icon-sm:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-icon-sm.text-danger:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--border-color);
}

.page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-page {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-page.active {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.btn-page:hover:not(.active) {
    background: #f8fafc;
    border-color: var(--blue);
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-blue);
    border-color: rgba(9, 105, 218, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-trend {
    margin-top: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
}

/* Helper Colors */
.bg-blue-light {
    background: #e6f1ff;
    color: #0969da;
}

.bg-green-light {
    background: #dafbe1;
    color: #1a7f37;
}

.bg-orange-light {
    background: #fff8c5;
    color: #9a6700;
}

.bg-purple-light {
    background: #f5f0ff;
    color: #8250df;
}

.trend-up {
    background: #dafbe1;
    color: #1a7f37;
}

.trend-down {
    background: #ffebe9;
    color: #cf222e;
}

/* Dashboard Content Areas */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Charts Placeholder */
.chart-placeholder {
    height: 250px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding-bottom: 1rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.bar {
    flex: 1;
    background: var(--blue);
    border-radius: 6px 6px 0 0;
    transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.bar:hover {
    opacity: 1;
    filter: brightness(1.1);
}

.lock-btn {
    width: 44px;
    height: 44px;
    background: var(--orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
    position: relative;
    z-index: 1;
}

.lock-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: var(--orange);
    z-index: -1;
    animation: halo-pulse 2s infinite;
}

@keyframes halo-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.lock-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

/* --- LOCK SCREEN --- */
.lock-screen-wrapper {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lock-screen-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.lock-clock-area {
    position: absolute;
    top: 15%;
}

.lock-time {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.lock-date {
    font-size: 1.25rem;
    opacity: 0.8;
    font-weight: 500;
}

.lock-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 30px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    margin-top: 100px;
}

.lock-shield {
    width: 60px;
    height: 60px;
    background: var(--purple);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(130, 80, 223, 0.4);
}

.pin-dots {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.pin-dot {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition);
}

.pin-dot.filled {
    border-color: var(--blue);
    background: rgba(9, 105, 218, 0.4);
    box-shadow: 0 0 15px var(--blue-glow);
}

.pin-dot.error {
    border-color: var(--danger);
    background: rgba(207, 34, 46, 0.2);
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* Kurs Takip Özel Stilleri */
.day-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
}

.day-badge.active {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.user-avatar-stack {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: help;
}

/* Eğitim Takvimi Stilleri */
.calendar-container {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.calendar-top-bar {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid var(--border-color);
}

.calendar-weekday {
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #f8fafc;
    border-right: 1px solid var(--border-color);
}

.calendar-day {
    min-height: 120px;
    padding: 0.8rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: background 0.2s;
}

.calendar-day:hover {
    background: #fdfdfd;
}

.calendar-day.today {
    background: #f0f9ff;
}

.calendar-day.today .day-number {
    background: var(--blue);
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.day-number {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.event-item {
    font-size: 0.7rem;
    padding: 6px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: transform 0.1s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-item:hover {
    transform: scale(1.02);
}

.event-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #1d4ed8;
}

.event-purple {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #6d28d9;
}

.event-green {
    background: #f0fdf4;
    color: #15803d;
    border-color: #15803d;
}

.event-orange {
    background: #fff7ed;
    color: #c2410c;
    border-color: #c2410c;
}

.event-gray {
    background: #f1f5f9;
    color: #475569;
    border-color: #94a3b8;
}

/* Premium Toggle Switch */
.switch-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.switch-group:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.switch-label {
    display: flex;
    flex-direction: column;
}

.switch-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sidebar-bg);
}

.switch-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.premium-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.premium-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
    background-color: var(--blue);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* 
   ==========================================================================
   ULTIMATE DARK MODE - DEEP INDIGO EDITION
   ========================================================================== 
*/
[data-theme="dark"] {
    --sidebar-bg: #020617;
    --sidebar-hover: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;

    --main-bg: #020617;
    --header-bg: rgba(2, 6, 23, 0.95);
    --card-bg: #0f172a;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;

    --border-color: #1e293b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.7);
    --shadow-premium: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 40px -10px rgba(0, 0, 0, 1);
    --shadow-glow-blue: 0 0 0 1px rgba(99, 102, 241, 0.3), 0 4px 16px rgba(99, 102, 241, 0.15);

    --blue: #6366f1;
    --purple: #8b5cf6;
    --orange: #f59e0b;
    --green: #10b981;
    --blue-glow: rgba(99, 102, 241, 0.12);
    --green-glow: rgba(16, 185, 129, 0.15);
    --danger-glow: rgba(239, 68, 68, 0.15);
    --badge-bg: rgba(255, 255, 255, 0.05);
    --sidebar-indicator: #f59e0b;
}

[data-theme="dark"] #app {
    background-color: var(--main-bg);
}

[data-theme="dark"] .login-split-container {
    background: var(--main-bg);
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .card-white {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .stat-icon {
    filter: brightness(0.9) saturate(1.2);
}

[data-theme="dark"] .search-box input {
    background: var(--card-bg);
    border-color: var(--orange);
}

[data-theme="dark"] .badge-soft {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .header-search input {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--orange);
}

[data-theme="dark"] .header-search input:focus {
    background: var(--card-bg);
    border-color: var(--blue);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .data-table td {
    color: var(--text-dark);
}

[data-theme="dark"] .data-table tr {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .action-bar {
    background: rgba(2, 6, 23, 0.6);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .data-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .data-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.06);
}

[data-theme="dark"] .data-table tbody tr:hover td:first-child {
    border-left-color: var(--blue);
}

[data-theme="dark"] #app::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

[data-theme="dark"] #app::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* --- TIMELINE --- */
.timeline {
    position: relative;
    padding-left: 25px;
    margin-top: 10px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--border-color);
    opacity: 0.5;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    border: 2px solid var(--card-bg);
    z-index: 1;
    box-shadow: 0 0 0 3px var(--main-bg);
}

.timeline-date {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

/* User Edit Modal Styles - Refined Premium Version */
.swal2-user-edit-popup {
    width: 650px !important;
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.swal2-user-edit-header {
    padding: 24px 30px;
    background: linear-gradient(to right, #f8fafc, #ffffff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.swal2-user-edit-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.swal2-user-edit-body {
    padding: 30px;
    text-align: left;
}

.swal2-user-edit-footer {
    padding: 20px 30px;
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: flex-end;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i.prefix-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
}

.input-with-icon .form-control {
    padding-left: 46px !important;
}

.input-with-icon:focus-within i.prefix-icon {
    color: var(--blue);
}

.input-group-rich {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
    background: #fff;
    width: 100%;
}

.input-group-rich:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(9, 105, 218, 0.1);
}

.input-group-rich .form-control {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
    height: 48px;
}

.input-group-rich .icon-btn-group {
    display: flex;
    background: #f8fafc;
    border-left: 1px solid var(--border-color);
}

.icon-btn-group button {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn-group button:hover {
    background: #f1f5f9;
}

.icon-btn-group button:first-child {
    border-right: 1px solid var(--border-color);
}

.swal2-user-edit-popup .form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.swal2-user-edit-popup .form-control {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.swal2-user-edit-popup .form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(9, 105, 218, 0.1);
}

/* Premium Switch Toggle */
.form-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.form-switch:hover {
    background: #f1f5f9;
}

.form-switch input {
    display: none;
}

.form-switch .slider {
    width: 40px;
    height: 20px;
    background: #cbd5e1;
    border-radius: 20px;
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.form-switch .slider::before {
    content: '';
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-switch input:checked+.slider {
    background: var(--green);
}

.form-switch input:checked+.slider::before {
    transform: translateX(20px);
}

/* Free Training Toggle - Dark/Black when ON */
.form-switch .free-training-toggle:checked+.slider,
.free-training-toggle:checked+.slider {
    background: #0f172a !important;
    background-color: #0f172a !important;
    box-shadow: 0 0 8px rgba(15, 23, 42, 0.3);
}

.status-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.timeline-content {
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    line-height: 1.4;
}

[data-theme="dark"] .timeline-content {
    background: rgba(255, 255, 255, 0.03);
}

.timeline-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
    display: block;
}

/* --- SKELETON LOADING --- */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.skeleton {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 1000px 100%;
    display: inline-block;
    position: relative;
    animation: shimmer 1.5s linear infinite forwards;
    border-radius: 4px;
}

.skeleton-text {
    height: 12px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-avatar {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

.skeleton-button {
    height: 36px;
    width: 100px;
    border-radius: 8px;
}

.skeleton-row {
    height: 60px;
    width: 100%;
    margin-bottom: 1px;
    border-radius: 0;
}

/* --- TIPPY PREMIUM TOOLTIP THEME --- */
.tippy-box[data-theme~='premium'] {
    background-color: #0d1117;
    color: #ffffff;
    border-radius: 14px;
    padding: 10px 15px;
    /* Added proper padding */
    font-size: 0.82rem;
    line-height: 1.6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Outfit', sans-serif;
    max-width: 350px !important;
}

.tippy-box[data-theme~='premium'] .tippy-arrow {
    color: #0d1117;
}

.tippy-box[data-theme~='premium'] .tippy-content {
    padding: 0;
    /* Keeping it 0 because box has padding, or we can just let it default */
}

/* --- FLIP CARD SYSTEM --- */
.course-card-container {
    perspective: 1000px;
    height: 480px;
    position: relative;
    transform-style: preserve-3d;
    overflow: visible;
    /* Ensure 3D rotation isn't clipped */
}

.course-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.course-card-inner.is-flipped {
    transform: rotateY(180deg);
}

.course-card-front,
.course-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    background: white;
}

.course-card-back {
    background: #f8fafc;
    /* Subtle gray background */
    transform: rotateY(180deg);
    border: 1px solid #e2e8f0;
}

.card-flip-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue-glow);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--blue);
}

/* Dynamic Charts */
.dynamic-chart-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 220px;
    padding-top: 30px;
    padding-bottom: 5px;
    gap: 8px;
}

.chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.bar-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
}

.bar-group {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 100%;
    width: 100%;
    justify-content: center;
}

.bar {
    width: 12px;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 2px;
}

.lead-bar {
    background: var(--blue);
    box-shadow: 0 4px 12px rgba(9, 105, 218, 0.2);
}

.student-bar {
    background: var(--purple);
    box-shadow: 0 4px 12px rgba(130, 80, 223, 0.2);
}

.bar-val {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-dark);
}

.month-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

.chart-col:hover .bar {
    filter: brightness(1.1);
}

.chart-col.is-selected {
    background: var(--blue-glow);
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(9, 105, 218, 0.05);
}

.chart-col.is-selected .bar {
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(9, 105, 218, 0.3);
}

.chart-col.is-selected .month-label {
    color: var(--blue);
    font-weight: 800;
}

.back-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--blue-glow) transparent;
}

.back-scroll-content::-webkit-scrollbar {
    width: 4px;
}

.back-scroll-content::-webkit-scrollbar-thumb {
    background: var(--blue-glow);
    border-radius: 10px;
}

/* =====================================================
   PREMIUM ADDITIONS - Modernization Pack
   ===================================================== */

/* --- PAGE TRANSITION ANIMATION --- */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- GRADIENT AVATAR SYSTEM --- */
.user-avatar {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

/* --- CARD WHITE ENHANCED HOVER --- */
.card-white {
    transition: var(--transition);
}

/* --- SEARCH BOX ORANGE BORDER FIX --- */
.search-box input {
    border-color: var(--border-color) !important;
}

.search-box input:focus {
    border-color: var(--blue) !important;
}

/* --- STAT ICON PREMIUM HOVER --- */
.stat-icon {
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.08);
}

/* --- BADGE MODERN --- */
.nav-item.active .badge {
    background: rgba(249, 115, 22, 0.2);
    color: var(--orange);
}

/* --- BUTTON PREMIUM GRADIENT ENHANCED --- */
.btn-premium {
    background: linear-gradient(135deg, var(--blue), #4752c4);
    letter-spacing: 0.2px;
}

.btn-premium:hover {
    background: linear-gradient(135deg, #1a7fda, var(--blue));
    filter: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 105, 218, 0.3);
}

/* --- DARK MODE FORM CONTROL --- */
[data-theme="dark"] .form-control {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
    color: var(--text-dark);
}

[data-theme="dark"] .form-control:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--blue);
}

/* --- DARK MODE SEARCH BOX --- */
[data-theme="dark"] .search-box input {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-dark);
}

[data-theme="dark"] .search-box input:focus {
    border-color: var(--blue) !important;
}

/* --- DARK MODE BTN OUTLINE --- */
[data-theme="dark"] .btn-outline {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-dark);
}

[data-theme="dark"] .btn-outline:hover {
    border-color: var(--blue);
    background: var(--blue-glow);
    color: var(--blue);
}

/* --- DARK MODE HEADER BACKDROP --- */
[data-theme="dark"] .main-header {
    background: var(--header-bg);
    border-bottom-color: var(--border-color);
}

/* --- DARK MODE NAV CATEGORY SEPARATOR --- */
[data-theme="dark"] .nav-category::after {
    background: linear-gradient(to right, rgba(245, 158, 11, 0.2), transparent);
}

/* --- DARK MODE USER AVATAR --- */
[data-theme="dark"] .user-avatar {
    background: linear-gradient(135deg, #4338ca, #7c3aed) !important;
}

/* --- DARK MODE SEARCH BOX INPUT --- */
[data-theme="dark"] .header-search input {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

/* --- DARK MODE SCROLLBAR --- */
[data-theme="dark"] #app::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

[data-theme="dark"] #app::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse {
    animation: pulse 1s infinite ease-in-out;
}

/* Inline Link Button Styles */
.input-inline-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.btn-goto-inline,
.btn-preview-inline {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--blue);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 6px;
    opacity: 0.6;
}

.btn-goto-inline:hover,
.btn-preview-inline:hover {
    opacity: 1;
    background: var(--blue-glow);
    transform: translateY(-50%) scale(1.1);
}

.btn-goto-inline i,
.btn-preview-inline i {
    font-size: 0.95rem;
}



/* CV Markdown Tabs */
.cv-tab {
    background: transparent;
    color: var(--text-muted);
    transition: var(--transition);
}

.cv-tab.active {
    background: white !important;
    color: var(--blue) !important;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .cv-tab.active {
    background: var(--sidebar-bg) !important;
    color: var(--sidebar-text-active) !important;
}

/* Markdown Preview Styles */
.markdown-body {
    color: var(--text-dark);
    line-height: 1.6;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3em;
}

.markdown-body h1 {
    font-size: 1.5rem;
}

.markdown-body h2 {
    font-size: 1.25rem;
}

.markdown-body h3 {
    font-size: 1.1rem;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.markdown-body blockquote {
    padding: 0 1em;
    color: var(--text-muted);
    border-left: 0.25em solid var(--border-color);
    margin: 1rem 0;
}

.markdown-body code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(175, 184, 193, 0.2);
    border-radius: 6px;
    font-family: monospace;
}

/* Premium Frosted Action Bar */
.frosted-action-bar {
    position: sticky;
    top: -12px;
    margin: -12px -2rem 1.5rem -2rem;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .frosted-action-bar {
    background: rgba(13, 17, 23, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Segmented Grad Status Toggle Switch - Clean Style without text */
.grad-status-toggle-wrapper {
    display: inline-block;
    flex-shrink: 0;
}
.grad-status-toggle-label {
    display: block;
    background: var(--blue, #0969da);
    border-radius: 15px;
    width: 54px;
    height: 30px;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
    box-sizing: border-box;
}
.grad-status-toggle-slider {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
    box-sizing: border-box;
}
.grad-status-toggle-checkbox:checked + .grad-status-toggle-label {
    background: var(--green, #10b981);
}
.grad-status-toggle-checkbox:checked + .grad-status-toggle-label .grad-status-toggle-slider {
    transform: translateX(24px);
}
.grad-status-toggle-checkbox[disabled] + .grad-status-toggle-label {
    opacity: 0.6;
    cursor: not-allowed;
    background: #cbd5e1 !important;
}
.grad-status-toggle-checkbox[disabled] + .grad-status-toggle-label .grad-status-toggle-slider {
    background: #f1f5f9;
}

/* Dark mode overrides */
[data-theme="dark"] .grad-status-toggle-checkbox[disabled] + .grad-status-toggle-label {
    background: #1e293b !important;
}
[data-theme="dark"] .grad-status-toggle-checkbox[disabled] + .grad-status-toggle-label .grad-status-toggle-slider {
    background: #0f172a;
}

/* Structured Notes Widget */
.enroll-notes-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
    transition: all 0.3s ease;
}
.enroll-note-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}
.enroll-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.enroll-note-body {
    font-size: 0.75rem;
    color: var(--text-dark);
    word-break: break-word;
    line-height: 1.3;
}
.btn-delete-note {
    position: absolute;
    right: 8px;
    top: 8px;
    border: none;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
    padding: 2px;
    font-size: 0.72rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.btn-delete-note:hover {
    opacity: 1;
}

[data-theme="dark"] .enroll-notes-container {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-color);
}
[data-theme="dark"] .enroll-note-item {
    background: var(--sidebar-hover);
    border-color: var(--border-color);
}

/* Custom Multiselect Dropdown Styles */
.custom-multiselect {
    position: relative;
    width: 100%;
}

.custom-multiselect #multiselect-trigger {
    transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-multiselect #multiselect-trigger:hover {
    border-color: var(--blue);
}

.custom-multiselect #multiselect-dropdown {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.custom-multiselect #multiselect-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-multiselect #multiselect-dropdown::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.multiselect-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
}

.multiselect-option:hover {
    background: var(--blue-glow) !important;
    color: var(--blue) !important;
}

.multiselect-tag .remove-tag-btn:hover {
    color: var(--danger) !important;
}

[data-theme="dark"] .custom-multiselect #multiselect-trigger {
    background: #0d1117 !important;
    border-color: #30363d !important;
}

[data-theme="dark"] .custom-multiselect #multiselect-dropdown {
    background: #0d1117 !important;
    border-color: #30363d !important;
}

[data-theme="dark"] .multiselect-option {
    color: #c9d1d9 !important;
}

[data-theme="dark"] .multiselect-option:hover {
    background: rgba(56, 139, 253, 0.15) !important;
    color: #58a6ff !important;
}

/* Custom Country Dropdown Styles */
.country-dropdown {
    position: relative;
    display: inline-block;
}

.country-dropdown-btn {
    width: 85px;
    height: 38px;
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.country-dropdown-btn:hover {
    border-color: var(--blue);
}

.country-dropdown-btn:focus {
    outline: none;
    border-color: var(--blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(9, 105, 218, 0.1);
}

.country-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    width: 250px;
    max-height: 280px;
    overflow-y: auto;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    z-index: 1060;
    padding: 8px;
}

.country-dropdown-menu.show {
    display: block;
}

.country-search-input {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 8px;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
    outline: none;
    transition: border-color 0.2s;
}

.country-search-input:focus {
    border-color: var(--blue);
}

.country-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.country-item:hover, .country-item.active {
    background-color: var(--blue) !important;
    color: #ffffff !important;
}

.country-item span {
    pointer-events: none;
}

.country-item .country-code-badge {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.6;
}

.country-item:hover .country-code-badge, .country-item.active .country-code-badge {
    opacity: 1;
    color: #ffffff;
}

/* Dark Mode Overrides */
[data-theme="dark"] .country-dropdown-btn {
    background: #0d1117;
    border-color: #30363d;
    color: #c9d1d9;
}

[data-theme="dark"] .country-dropdown-btn:focus {
    background: #0d1117;
}

[data-theme="dark"] .country-dropdown-menu {
    background: #0d1117;
    border-color: #30363d;
}

[data-theme="dark"] .country-search-input {
    background: #0d1117;
    border-color: #30363d;
    color: #c9d1d9;
}

[data-theme="dark"] .country-item {
    color: #c9d1d9;
}

[data-theme="dark"] .country-item:hover, [data-theme="dark"] .country-item.active {
    background-color: rgba(56, 139, 253, 0.15) !important;
    color: #58a6ff !important;
}

[data-theme="dark"] .country-item:hover .country-code-badge, [data-theme="dark"] .country-item.active .country-code-badge {
    color: #58a6ff;
}

/* --- LOCK SCREEN KEYPAD & PASSWORD --- */
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 2rem;
}

.keypad-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--sidebar-text-active);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.8rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.keypad-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.keypad-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.1);
}

.keypad-btn-special {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    font-size: 1.25rem;
    opacity: 0.8;
}

.keypad-btn-special:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

#toggle-password-view:hover, #toggle-pin-view:hover {
    opacity: 1 !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Password View Animation & Layout */
#password-section .form-control:focus {
    border-color: var(--blue) !important;
    box-shadow: var(--shadow-glow-blue) !important;
    outline: none;
}

#toggle-password-visibility:hover {
    color: var(--sidebar-text-active) !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* SweetAlert2 Toast Pointer Events Layout Overrides */
body.swal2-toast-shown .swal2-container {
    pointer-events: none !important;
}

body.swal2-toast-shown .swal2-container .swal2-toast {
    pointer-events: auto !important;
}

.swal2-container:has(.swal2-toast) {
    pointer-events: none !important;
}

.swal2-container:has(.swal2-toast) .swal2-toast {
    pointer-events: auto !important;
}

/* --- REGISTRATION GRID RESPONSIVENESS OVERRIDES --- */
@media (max-width: 1200px) {
    .registration-grid {
        grid-template-columns: 1fr !important;
    }
}