/* Siya9ati Admin Panel - Modern Dark/Navy Glassmorphism Design */
:root {
    --bg-dark: #0B0F19;
    --bg-card: #151D30;
    --bg-card-hover: #1E2942;
    --border-color: #23314E;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --accent-glow: rgba(245, 158, 11, 0.2);
    --primary: #3B82F6;
    --success: #10B981;
    --danger: #EF4444;
    --sidebar-width: 260px;
    --radius: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    direction: rtl;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: #0E1526;
    border-left: 1px solid var(--border-color);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), #EA580C);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-item a:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    transform: translateX(-4px);
}

.nav-item.active a {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), transparent);
    border-right: 3px solid var(--accent);
    color: var(--accent);
}

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

/* Main Content */
.main-wrapper {
    margin-right: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    height: 70px;
    background: #0E1526;
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
}

.content-container {
    padding: 32px;
    flex: 1;
}

/* Cards & Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 16.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-info .stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-info .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: #0B0F19;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--accent);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Toggle Switch */
.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: #0B0F19;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 14px;
}

.switch-label {
    font-size: 14px;
    font-weight: 600;
}

.switch-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #334155;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--success);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #EA580C);
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 4px 14px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-danger {
    background: #DC2626;
    color: #FFF;
}

.btn-danger:hover {
    background: #B91C1C;
}

.btn-secondary {
    background: #334155;
    color: #FFF;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 16px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

th {
    color: var(--text-secondary);
    font-weight: 600;
    background: #0B0F19;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Toast Alert */
.toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--success);
    color: #FFF;
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
}
