/* ==========================================
   PANEL STYLES – Futuristic & Premium
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700;900&display=swap');

:root {
  --bg: #050816;
  --surface: rgba(15, 23, 42, 0.75);
  --surface-solid: #0F172A;
  --border: rgba(0, 229, 255, 0.25);
  --accent: #00E5FF;
  --primary: #2563EB;
  --secondary: #7C3AED;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --danger: #EF4444;
  --success: #10B981;
  --radius: 1rem;
  --transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Reset & base */
* { box-sizing: border-box; }
body.panel {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* Scrollbar custom */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
html { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }

/* ======= SIDEBAR ======= */
.sidebar {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  transition: transform var(--transition), width var(--transition);
  will-change: transform;
  z-index: 50;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap;
}
.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(37, 99, 235, 0.25);
  color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
  border-right: 3px solid var(--accent);
}

/* ======= MAIN CONTENT ======= */
.main-content {
  background: radial-gradient(circle at 30% 20%, rgba(37,99,235,0.08) 0%, transparent 50%);
}

/* ======= CARDS & PANELS ======= */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 25px rgba(0,229,255,0.15);
}

/* ======= FORM ELEMENTS ======= */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
  background: rgba(15, 23, 42, 0.95);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300E5FF' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

/* ======= BUTTONS ======= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 8px 20px rgba(37,99,235,0.4);
  padding: 8px 12px;
  border-radius: 16px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(37,99,235,0.6);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: rgba(0, 229, 255, 0.1);
}
.btn-danger {
  background: linear-gradient(135deg, #EF4444, #B91C1C);
}
.btn-sm {
  padding: 0.45rem 1.2rem;
  font-size: 0.8rem;
}

/* ======= FILE UPLOAD ======= */
.file-upload {
  position: relative;
  display: inline-block;
}
.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-upload .upload-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--surface-solid);
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.file-upload:hover .upload-label {
  border-color: var(--accent);
  color: var(--accent);
}

/* ======= TABLE ======= */
.table-glass {
  border-collapse: collapse;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
.table-glass thead th {
  background: rgba(15, 23, 42, 0.9);
  padding: 1rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}
.table-glass tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background var(--transition);
}
.table-glass tbody tr:hover td {
  background: rgba(37, 99, 235, 0.1);
}

/* ======= FLATPICKR OVERRIDES ======= */
.flatpickr-calendar {
  background: var(--surface-solid) !important;
  border: 1px solid var(--border) !important;
  font-family: 'Vazirmatn', sans-serif !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6) !important;
}
.flatpickr-day.selected {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.flatpickr-day:hover {
  background: rgba(0,229,255,0.2) !important;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 1023px) {
  .sidebar {
    position: fixed;
    right: 0; top: 0; bottom: 0;
    width: 260px;
    transform: translateX(100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 40;
  }
  .sidebar-overlay.open { display: block; }
  .mobile-menu-btn {
    display: block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
  .sidebar-overlay { display: none; }
}



/* ========== DASHBOARD CARDS ========== */
.dash-card {
    position: relative;
    border-radius: 1rem;
    padding: 1.5rem;
    background-color: #0f172a; /* fallback */
    overflow: hidden;
    transition: all 0.3s ease;
}
.dash-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}
.dash-card-bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    opacity: 0.15;
    filter: blur(5px);
    transition: opacity 0.3s;
}
.dash-card:hover .dash-card-bg {
    opacity: 0.25;
}
.dash-card-inner {
    position: relative;
    z-index: 1;
}
.dash-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
}
.dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 500;
}
.dash-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    margin-top: 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(to right, #6366f1, #a855f7);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}
.dash-btn:hover {
    background: linear-gradient(to right, #4f46e5, #9333ea);
    transform: translateY(-1px);
}


/* ========== REPORT CARDS ========== */
.report-card {
    position: relative;
    border-radius: 1rem;
    padding: 1.5rem;
    background-color: #0f172a;
    overflow: hidden;
    transition: all 0.3s ease;
}
.report-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}
.report-card-bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    opacity: 0.1;
    filter: blur(5px);
    transition: opacity 0.3s;
}
.report-card:hover .report-card-bg {
    opacity: 0.2;
}
.report-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* آواتار */
.report-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(99, 102, 241, 0.6);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
}
.report-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* دکمه‌های عملیات */
.report-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}
.report-btn-approve {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
}
.report-btn-approve:hover {
    background: #10b981;
    color: white;
}
.report-btn-reject {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}
.report-btn-reject:hover {
    background: #ef4444;
    color: white;
}


/* دکمه جزئیات */
.report-btn-detail {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}
.report-btn-detail:hover {
    background: #3b82f6;
    color: white;
}


/* ========== USER CARDS ========== */
.uc-card {
    width: 100%;
    max-width: 280px;
    height: 280px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 32px;
    padding: 3px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.5s ease-in-out;
    margin: 0 auto;
}
.uc-card:hover {
    border-top-left-radius: 55px;
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.2);
}

/* دکمه ایمیل */
.uc-mail {
    position: absolute;
    right: 2rem;
    top: 1.4rem;
    background: transparent;
    border: none;
    color: rgba(0, 229, 255, 0.8);
    font-size: 1.4rem;
    z-index: 5;
    transition: color 0.3s;
}
.uc-mail:hover {
    color: #00E5FF;
}

/* تصویر / آیکن پروفایل */
.uc-profile-pic {
    position: absolute;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    top: 3px;
    left: 3px;
    border-radius: 29px;
    z-index: 1;
    border: 0px solid rgba(0, 229, 255, 0.4);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in-out 0.2s, z-index 0.5s ease-in-out 0.2s;
}
.uc-profile-pic img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center;
    transition: all 0.5s ease-in-out 0s;
}
.uc-profile-pic i {
    font-size: 5rem;
    color: #00E5FF;
    transition: all 0.5s ease-in-out 0s;
}

/* بخش پایین کارت */
.uc-bottom {
    position: absolute;
    bottom: 3px;
    left: 3px;
    right: 3px;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    top: 80%;
    border-radius: 29px;
    z-index: 2;
    box-shadow: inset 0 5px 5px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
}

/* محتوای متنی */
.uc-content {
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 160px;
}
.uc-name {
    display: block;
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
}
.uc-about {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.5rem;
}

/* پایین‌ترین بخش */
.uc-bottom-bottom {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* شبکه‌های اجتماعی */
.uc-social-links {
    display: flex;
    gap: 0.5rem;
}
.uc-social-links svg {
    height: 18px;
    fill: white;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2));
    transition: transform 0.2s;
}
.uc-social-links svg:hover {
    transform: scale(1.2);
    fill: #00E5FF;
}

/* دکمه عملیات */
.uc-button {
    background: white;
    color: #7C3AED;
    border: none;
    border-radius: 20px;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}
.uc-button:hover {
    background: #00E5FF;
    color: #050816;
    transform: translateY(-2px);
}

/* Hover effects */
.uc-card:hover .uc-bottom {
    top: 20%;
    border-radius: 80px 29px 29px 29px;
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0.2s;
}
.uc-card:hover .uc-profile-pic {
    width: 100px;
    height: 100px;
    aspect-ratio: 1;
    top: 10px;
    left: 10px;
    border-radius: 50%;
    z-index: 3;
    border: 4px solid #00E5FF;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    transition: all 0.5s ease-in-out, z-index 0.5s ease-in-out 0.1s;
}
.uc-card:hover .uc-profile-pic:hover {
    transform: scale(1.2);
    border-radius: 50%;
}
.uc-card:hover .uc-profile-pic img {
    transform: scale(1.8);
    object-position: center 20%;
    transition: all 0.5s ease-in-out 0.5s;
}
.uc-card:hover .uc-profile-pic i {
    transform: scale(1.8);
    transition: all 0.5s ease-in-out 0.5s;
}


/* ========== MESSAGE CARDS ========== */
.msg-card {
    position: relative;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    overflow: hidden;
    z-index: 1;
}

.msg-card-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}
.msg-glow-left {
    width: 120px;
    height: 120px;
    background: #6366f1; /* indigo-500 */
    top: -20px;
    left: -20px;
}
.msg-glow-right {
    width: 150px;
    height: 150px;
    background: #0ea5e9; /* sky-500 */
    bottom: -30px;
    right: -30px;
}

.msg-card-inner {
    position: relative;
    z-index: 1;
}

/* آیتم‌های لیست پیام */
.msg-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}
.msg-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}


/* ========== SERVICE CARDS ========== */
.service-card {
    position: relative;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    background-color: #0f172a;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}
.service-card-bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    opacity: 0.08;
    filter: blur(5px);
    transition: opacity 0.3s;
}
.service-card:hover .service-card-bg {
    opacity: 0.15;
}
.service-card-inner {
    position: relative;
    z-index: 1;
}
.service-image {
    width: 100%;
    height: 160px;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== NOTIFICATIONS ========== */
.notif-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 229, 255, 0.15);
    transition: all 0.3s ease;
}
.notif-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 25px rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.4);
}

/* هاله‌های شیشه‌ای */
.notif-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}
.notif-glow-left {
    left: -3rem;
    top: -3rem;
    width: 7rem;
    height: 7rem;
    background: #00E5FF;
    opacity: 0.12;
    transition: opacity 0.3s;
}
.notif-glow-right {
    right: -3rem;
    bottom: -3rem;
    width: 7rem;
    height: 7rem;
    background: #7C3AED;
    opacity: 0.1;
    transition: opacity 0.3s;
}
.notif-card:hover .notif-glow-left {
    opacity: 0.2;
}
.notif-card:hover .notif-glow-right {
    opacity: 0.18;
}

.notif-inner {
    position: relative;
    padding: 1.5rem;
    z-index: 1;
}

/* آیکن */
.notif-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}
.notif-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(0, 229, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

/* برچسب‌ها */
.notif-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 229, 255, 0.15);
    color: #00E5FF;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.notif-badge-read {
    display: inline-block;
    background: rgba(148, 163, 184, 0.1);
    color: #94A3B8;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* لینک */
.notif-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.6rem;
    border-radius: 0.75rem;
    background: rgba(0, 229, 255, 0.08);
    color: #00E5FF;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}
.notif-link:hover {
    background: rgba(0, 229, 255, 0.2);
}

/* ========== NOTIFICATION TABS ========== */
.notif-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.notif-tab {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #94A3B8;
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.notif-tab:hover {
    border-color: #00E5FF;
    color: #00E5FF;
}
.notif-tab.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: #00E5FF;
    color: #00E5FF;
    font-weight: 600;
}

/* Badge کنار تب‌ها */
.notif-badge {
    display: inline-block;
    background: #00E5FF;
    color: #050816;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 1.4rem;
    height: 1.4rem;
    line-height: 1.4rem;
    text-align: center;
    border-radius: 9999px;
    padding: 0 0.3rem;
    margin-right: 0.3rem;
    vertical-align: middle;
}


/* Badge کنار منوی اعلان‌ها */
.sidebar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #00E5FF;
    color: #050816;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 1.3rem;
    height: 1.3rem;
    line-height: 1.3rem;
    border-radius: 9999px;
    padding: 0 0.3rem;
    margin-right: auto; /* یا margin-left: 0.5rem; بسته به جهت */
    position: relative;
    top: -2px;
}




/* ========== TASK FILTER BUTTONS ========== */
.task-filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94A3B8;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.task-filter-btn:hover {
    border-color: #00E5FF;
    color: #00E5FF;
}
.task-filter-btn.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: #00E5FF;
    color: #00E5FF;
    font-weight: 600;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(0,229,255,0.2);
}


.file-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.75rem 1rem; background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px); border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 1rem; transition: all 0.3s;
}
.file-item:hover { border-color: #00E5FF; box-shadow: 0 0 15px rgba(0, 229, 255, 0.15); }
.file-thumb {
    width: 48px; height: 48px; border-radius: 0.75rem;
    background: rgba(0, 229, 255, 0.1); display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.file-thumb i { font-size: 1.5rem; color: #00E5FF; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 0.9rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: 0.75rem; color: #94A3B8; margin-top: 0.2rem; }
.file-remove {
    background: none; border: none; color: #EF4444; cursor: pointer;
    font-size: 1.2rem; transition: transform 0.2s;
}
.file-remove:hover { transform: scale(1.2); }

/* ========== REPORT CARDS (NEW DESIGN) ========== */
.report-card-wrapper {
    position: relative;
    transition: all 0.3s ease;
}
.report-card-wrapper:hover {
    transform: translateY(-2px);
}

/* مدال */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(0,229,255,0.2);
}

/* ========== MESSAGE CARDS ========== */
.msg-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 229, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.msg-card:hover {
    border-color: rgba(0, 229, 255, 0.4);
}
.msg-card-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    pointer-events: none;
}
.msg-glow-left {
    left: -3rem;
    top: -3rem;
    width: 7rem;
    height: 7rem;
    background: #6366f1;
}
.msg-glow-right {
    right: -3rem;
    bottom: -3rem;
    width: 7rem;
    height: 7rem;
    background: #0ea5e9;
}
.msg-card-inner {
    position: relative;
    padding: 2rem;
    z-index: 1;
}

/* آیتم‌های لیست پیام */
.msg-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}
.msg-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

/* کارت وظایف جدید */
.task-card {
    position: relative;
    transition: all 0.3s ease;
}

/* ========== macOS CARDS ========== */
.mac-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.mac-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #222533;
    color: #fbebe2;
    padding: 1.5rem;
    width: 200px;
    height: 200px;
    border-radius: 26px;
    user-select: none;
    transition: all 0.3s ease-in-out;
    border: 1px solid transparent;
}
.mac-card:hover {
    background-color: #1d1d1d;
    transform: scale(1.08);
    border-color: #5e63ff;
}
.mac-card span {
    font-size: 3rem;
    font-weight: 900;
    transition: all 0.3s ease-in-out;
}
.mac-card p {
    font-size: 0.75rem;
    transition: all 0.3s ease-in-out;
    color: #94A3B8;
}
.mac-card:hover span {
    color: #5e63ff;
    font-size: 3.5rem;
}
.mac-card:hover p {
    font-size: 0.85rem;
    color: #b1cbf6;
}

.mac-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}
.mac-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.mac-red    { background-color: #ff5f57; }
.mac-yellow { background-color: #ffbd2e; }
.mac-green  { background-color: #28c941; }


/* ========== TAB BAR HEADER ========== */
.nt-header {
    background: #0f172a;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,229,255,0.15);
    position: sticky;
    top: 0;
    z-index: 50;
}
.nt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* تب‌بار */
.nt-tab-wrap {
    --p-y: 4px; --p-x: 8px;
    display: flex;
    align-items: center;
    padding: var(--p-y) var(--p-x);
    background: #1e293b;
    border-radius: 10px;
    position: relative;
    width: fit-content; /* فقط به اندازهٔ محتوا */
}
.nt-label {
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 10px 14px;
    text-align: center;
    user-select: none;
    z-index: 2;
    white-space: nowrap;
    transition: color 0.25s;
    flex: 1; /* همه عرض مساوی بگیرند */
}
input[class*="nt-rd-"]:checked + .nt-label { color: #00e5ff; }

.nt-bar {
    position: absolute;
    height: 100%;
    width: calc(100% / 6); /* عرض مساوی با یک تب */
    z-index: 0;
    transition: transform 0.5s cubic-bezier(0.33, 0.83, 0.99, 0.98);
}
.nt-bar::before, .nt-bar::after {
    content: ""; position: absolute; height: 4px; width: 100%; background: #00e5ff;
}
.nt-bar::before { top: 0; border-radius: 0 0 999px 999px; }
.nt-bar::after  { bottom: 0; border-radius: 999px 999px 0 0; }

.nt-slidebar {
    position: absolute;
    height: calc(100% - var(--p-y)*4);
    width: calc(100% / 6);
    border-radius: calc(10px - var(--p-y));
    background: rgba(0,229,255,0.15);
    z-index: 0;
    transition: transform 0.5s cubic-bezier(0.33, 0.83, 0.99, 0.98);
}

/* موقعیت‌های اسلایدبر اساس تب فعال (6 تب) */
.nt-rd-1:checked ~ .nt-slidebar,
.nt-rd-1:checked ~ .nt-bar { transform: translateX(0); }
.nt-rd-2:checked ~ .nt-slidebar,
.nt-rd-2:checked ~ .nt-bar { transform: translateX(100%); }
.nt-rd-3:checked ~ .nt-slidebar,
.nt-rd-3:checked ~ .nt-bar { transform: translateX(200%); }
.nt-rd-4:checked ~ .nt-slidebar,
.nt-rd-4:checked ~ .nt-bar { transform: translateX(300%); }
.nt-rd-5:checked ~ .nt-slidebar,
.nt-rd-5:checked ~ .nt-bar { transform: translateX(400%); }
.nt-rd-6:checked ~ .nt-slidebar,
.nt-rd-6:checked ~ .nt-bar { transform: translateX(500%); }

/* دکمه ورود */
.nt-login-btn { margin-right: 2rem; flex-shrink: 0; }

/* همبرگر */
.nt-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 60;
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}
.nt-ham-line {
    width: 24px; height: 3px;
    background: #fff; border-radius: 2px;
    transition: all 0.5s ease;
}
.nt-ham-input:checked ~ .nt-ham-line1 {
    transform: rotate(225deg) translate(-5px, -5px);
    width: 50%;
    transform-origin: right;
}
.nt-ham-input:checked ~ .nt-ham-line2 { transform: rotate(-45deg); }
.nt-ham-input:checked ~ .nt-ham-line3 {
    transform: rotate(225deg) translate(-5px, 5px);
    width: 50%;
    place-self: end;
    transform-origin: left;
}

/* منوی کشویی Card List */
.nt-mobile-menu-wrapper {
    display: none;
    position: fixed;
    top: 70px;
    left: 1rem;
    z-index: 55;
}
.nt-ham-input:checked ~ .nt-mobile-menu-wrapper { display: block; }

/* استایل‌های Card List (محدود به این wrapper) */
.nt-mobile-menu-wrapper .card {
    width: 220px;
    background-color: rgba(36, 40, 50, 1);
    background-image: linear-gradient(139deg, rgba(36, 40, 50, 1) 0%, rgba(37, 28, 40, 1) 100%);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
.nt-mobile-menu-wrapper .list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
}
.nt-mobile-menu-wrapper .separator {
    border-top: 1.5px solid #42434a;
    margin: 4px 0;
}
.nt-mobile-menu-wrapper .element a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    color: #7e8590;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.nt-mobile-menu-wrapper .element a i { font-size: 1.2rem; width: 20px; text-align: center; }
.nt-mobile-menu-wrapper .element a:hover {
    background-color: #5353ff;
    color: #fff;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .nt-tab-wrap { display: none; }
    .nt-login-btn { display: none; }
    .nt-hamburger { display: flex; }
    .nt-container { justify-content: flex-end; }
}