:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --sidebar-width: 250px;
}

[data-theme="dark"] {
    --light-color: #1e293b;
    --dark-color: #f8fafc;
    --body-bg: #0f172a;
    --card-bg: #1e293b;
    --text-color: #e2e8f0;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] body {
    background-color: var(--body-bg);
    color: var(--text-color);
}

/* Sidebar */
#sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

[data-theme="dark"] #sidebar {
    background-color: var(--card-bg);
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.sidebar .nav-link {
    color: var(--dark-color);
    padding: 12px 20px;
    margin: 5px 0;
    border-radius: 8px;
    transition: all 0.3s;
}

[data-theme="dark"] .sidebar .nav-link {
    color: var(--text-color);
}

.sidebar .nav-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
}

[data-theme="dark"] .card {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Ads Cards */
.ad-card {
    cursor: pointer;
}

.ad-card:hover {
    border-color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Stats Cards */
.stats-card {
    border-radius: 15px;
    overflow: hidden;
}

/* Notification Modal */
.notification-modal {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    padding: 15px;
    max-width: 300px;
    animation: slideIn 0.3s ease;
}

[data-theme="dark"] .notification-modal {
    background: var(--card-bg);
    color: var(--text-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.close-notification {
    float: right;
    cursor: pointer;
    font-size: 20px;
}

/* Step Numbers */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

/* RTL Support */
[dir="rtl"] .sidebar .nav-link:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .notification-modal {
    right: auto;
    left: 20px;
    animation: slideInRTL 0.3s ease;
}

@keyframes slideInRTL {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}



body {
    direction: ltr !important;
}