/* ITFC System - Modern Glassmorphism Design */


:root {
    --primary-blue: #0066FF;
    --secondary-blue: #00A3FF;
    --dark-blue: #001F3F;
    --light-blue: #E6F2FF;
    --white: #FFFFFF;
    --glass-white: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --shadow: rgba(0, 0, 0, 0.1);
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --success: #00C853;
    --error: #FF3D00;
    --warning: #FFC107;

    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #1976D2;
    --primary-xlight: #E3F2FD;
    --accent: #0288D1;
    --accent2: #00ACC1;
    --success: #2E7D32;
    --success-light: #E8F5E9;
    --danger: #C62828;
    --danger-light: #FFEBEE;
    --warning: #E65100;
    --warning-light: #FFF3E0;
    --info: #0277BD;
    --info-light: #E1F5FE;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --white: #FFFFFF;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 32px rgba(21, 101, 192, 0.12);
    --transition: 0.22s cubic-bezier(.4, 0, .2, 1);
}


@font-face {
    font-family: "Peyda-main";
    src: url("../assets/fonts/peydabold.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: "vazir-main";
    src: url("../assets/fonts/vazir.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "IranNastaliq";
    src: url("../assets/fonts/IranNastaliq.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}



* {
    font-family: "Peyda-main";
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
    direction: rtl;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}
a{
    text-decoration: none;
}
/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 163, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: bgShift 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Glassmorphism Container */
.glass-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    padding: 2rem;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 1;

}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Container */
.main-container {

    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out;
}

.logo {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--light-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.subtitle {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    animation: slideIn 0.5s ease-out;
}

.form-group label {
    display: block;
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 1rem;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
    border-color: var(--secondary-blue);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(0, 163, 255, 0.1);
    transform: translateY(-2px);
}

/* Button Styles */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--white);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-color: var(--secondary-blue);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Profile Cards */
.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-info h2 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Role Badges */
.role-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-athlete {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
}

.badge-coach {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
}

.badge-referee {
    background: linear-gradient(135deg, #FFD93D, #F6C23E);
    color: #333;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(0, 200, 83, 0.2);
    border: 1px solid rgba(0, 200, 83, 0.4);
    color: var(--white);
}

.alert-error {
    background: rgba(255, 61, 0, 0.2);
    border: 1px solid rgba(255, 61, 0, 0.4);
    color: var(--white);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: var(--white);
}

/* File Upload */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload-input {
    display: none;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: var(--secondary-blue);
    background: rgba(255, 255, 255, 0.1);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.custom-checkbox {
    position: relative;
    width: 24px;
    height: 24px;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.custom-checkbox input:checked ~ .checkmark {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-color: var(--secondary-blue);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark::after {
    display: block;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--white);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.status-active {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-pending {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

.status-inactive {
    background: var(--error);
    box-shadow: 0 0 8px var(--error);
}
/* استایل برای input جستجو در select ها */
.form-group input[type="text"] + select {
    margin-top: 0.5rem;
}

/* استایل بهتر برای فیلد تاریخ */
#birth_date_display {
    font-family: 'IRANSans', 'Tahoma', sans-serif;
    letter-spacing: 1px;
    direction: ltr;
    text-align: right;
}

#birth_date_display::placeholder {
    direction: rtl;
    text-align: right;
}




/* =====================================================
   ITFC Searchable Select - استایل حرفه‌ای
   این بلاک را به فایل styles.css خود اضافه کنید
   ===================================================== */

/* --- کانتینر اصلی --- */
.searchable-select {
    position: relative;
    width: 100%;
    font-family: inherit;
    direction: rtl;
}

/* --- دکمه نمایش انتخاب شده --- */
.ss-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    color: white;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    min-height: 48px;
    user-select: none;
}

.ss-trigger:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.searchable-select.ss-open .ss-trigger {
    border-color: rgba(99, 179, 237, 0.7);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.15);
}

.ss-selected-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.ss-placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.ss-has-value .ss-selected-text {
    color: white;
    font-weight: 500;
}

/* --- فلش --- */
.ss-arrow {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.25s ease, color 0.2s;
    flex-shrink: 0;
}

.searchable-select.ss-open .ss-arrow {
    transform: rotate(180deg);
    color: rgba(99, 179, 237, 0.9);
}

/* --- dropdown پایین --- */
.ss-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(22, 30, 50, 0.97);
    border: 1px solid rgba(99, 179, 237, 0.35);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
    display: none;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.searchable-select.ss-open .ss-dropdown {
    display: block;
    animation: ssDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ssDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- باکس جستجو --- */
.ss-search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.ss-search-icon {
    color: rgba(99, 179, 237, 0.7);
    flex-shrink: 0;
}

.ss-search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: white !important;
    font-size: 0.875rem;
    font-family: inherit;
    padding: 0 !important;
    box-shadow: none !important;
    direction: rtl;
    text-align: right;
}

.ss-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* --- لیست گزینه‌ها --- */
.ss-options-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.ss-options-list::-webkit-scrollbar { width: 5px; }
.ss-options-list::-webkit-scrollbar-track { background: transparent; }
.ss-options-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }

/* --- هر گزینه --- */
.ss-option {
    padding: 0.6rem 1rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    transition: background 0.15s, color 0.15s;
    text-align: right;
    direction: rtl;
}

.ss-option:hover {
    background: rgba(99, 179, 237, 0.15);
    color: white;
}

.ss-option-selected {
    background: rgba(99, 179, 237, 0.22);
    color: rgb(147, 210, 252);
    font-weight: 600;
}

.ss-option-selected::after {
    content: '✓';
    float: left;
    font-size: 0.8rem;
    opacity: 0.8;
}

.ss-option-disabled {
    color: rgba(255, 255, 255, 0.25);
    cursor: default;
    font-style: italic;
    font-size: 0.85rem;
}

.ss-option-empty {
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
    cursor: default;
    font-style: italic;
}

/* --- هایلایت متن جستجو --- */
.ss-highlight {
    background: rgba(251, 191, 36, 0.35);
    color: #fde68a;
    border-radius: 2px;
    padding: 0 1px;
    font-weight: 700;
}

/* --- حالت غیرفعال --- */
.searchable-select.ss-disabled .ss-trigger {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Form ── */
.form-group {
    margin-bottom: 20px;
    position: relative;
  }
  .form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: 7px;
    letter-spacing: 0.02em;
  }
  .input-wrap {
    position: relative;
  }
  .input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: var(--gray-400);
    pointer-events: none;
    transition: color 0.2s;
  }
  .form-input {
    width: 100%;
    height: 50px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    padding: 0 48px 0 48px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    color: var(--blue-900);
    background: var(--gray-100);
    transition: all 0.2s ease;
    outline: none;
    -webkit-appearance: none;
  }
  .form-input:focus {
    border-color: var(--blue-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(21,101,192,0.10);
  }
  .form-input:focus + .input-icon,
  .form-input:focus ~ .input-icon {
    color: var(--blue-500);
  }
  .form-input::placeholder { color: var(--gray-400); font-size: 13px; }
  
  /* eye toggle */
  .toggle-pass {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 17px;
    color: var(--gray-400);
    padding: 4px;
    transition: color 0.2s;
    line-height: 1;
  }
  .toggle-pass:hover { color: var(--blue-500); }
  .doc-status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
}

.doc-status-approved {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.4);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
}

.doc-status-rejected {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.4);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
}

.doc-required-badge {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.78rem;
}

.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.doc-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.doc-icon {
    font-size: 2rem;
    min-width: 40px;
    text-align: center;
}

.doc-info {
    flex: 1;
}

.doc-info p {
    margin: 0.15rem 0;
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #51cf66;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
}

.alert-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff6b6b;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
}

.form-select {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1rem;
    font-family: inherit;
}

.form-select option {
    background: #1a1a2e;
    color: white;
}

.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #16213e;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
}

.form-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.4rem;
}

.form-group {
    margin-bottom: 1.1rem;
}


/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(175deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent) 100%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -4px 0 24px rgba(13, 71, 161, 0.18);
    transition: transform var(--transition);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    backdrop-filter: blur(8px);
}

.logo-icon  img{
    width: 55px;
    height: 55px;
  
}

.logo-text h2 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.logo-text span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.nav-section-title {
    color: rgba(255, 255, 255, 0.45);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 8px 6px;
    margin-top: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    border-radius: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13.5px;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 2px;
    position: relative;
    user-select: none;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #fff;
    border-radius: 4px 0 0 4px;
}

.nav-item .nav-icon {
    font-size: 18px;
    min-width: 22px;
    text-align: center;
}

.nav-item .badge {
    margin-right: auto;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 20px;
}

.nav-item.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--white);
    padding: 4px;
    margin: 5px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {

    :root {
        --sidebar-width: 260px;
    }
.main-container {
margin-right:0;
 
}

    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .topbar {
        right: 0;
    }

    .main {
        margin-right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }

    .glass-container {
        padding: 1.5rem;
    }

    .logo {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        min-width: 100%;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
