/* ============================================================
   Ã™ÂÃ˜Â§Ã›Å’Ã™â€ž CSS Ã˜Â¬Ã˜Â§Ã™â€¦Ã˜Â¹ - Ã˜Â³Ã›Å’Ã˜Â³Ã˜ÂªÃ™â€¦ Ã˜Â§Ã˜Â­Ã˜Â±Ã˜Â§Ã˜Â² Ã™â€¡Ã™Ë†Ã›Å’Ã˜Âª Ã™ÂÃ›Å’Ã˜Â¯Ã™Ë†
   ============================================================ */

/* ============================================================
   1. Ã™ÂÃ™Ë†Ã™â€ Ã˜ÂªÃ¢â‚¬Å’Ã™â€¡Ã˜Â§ (Font-Face)
   ============================================================ */

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   2. Ã™â€¦Ã˜ÂªÃ˜ÂºÃ›Å’Ã˜Â±Ã™â€¡Ã˜Â§Ã›Å’ CSS (CSS Variables)
   ============================================================ */

:root {
    /* Ã˜Â±Ã™â€ ÃšÂ¯Ã¢â‚¬Å’Ã™â€¡Ã˜Â§Ã›Å’ Ã˜Â§Ã˜ÂµÃ™â€žÃ›Å’ */
    --primary: #E8233D;
    --primary-dark: #d41a32;
    --primary-light: #f05060;
    
    /* Ã˜Â±Ã™â€ ÃšÂ¯Ã¢â‚¬Å’Ã™â€¡Ã˜Â§Ã›Å’ Ã˜Â«Ã˜Â§Ã™â€ Ã™Ë†Ã›Å’Ã™â€¡ (Ã˜Â¨Ã˜Â± Ã˜Â§Ã˜Â³Ã˜Â§Ã˜Â³ Ã˜Â±Ã™Ë†Ã˜Â§Ã™â€ Ã˜Â´Ã™â€ Ã˜Â§Ã˜Â³Ã›Å’ Ã˜Â±Ã™â€ ÃšÂ¯) */
    --secondary: #667eea;
    --secondary-dark: #5568d3;
    --secondary-light: #7b8ff0;
    
    /* Ã˜Â±Ã™â€ ÃšÂ¯Ã¢â‚¬Å’Ã™â€¡Ã˜Â§Ã›Å’ Ã™â€¦Ã™Ë†Ã™ÂÃ™â€šÃ›Å’Ã˜Âª/Ã˜Â®Ã˜Â·Ã˜Â§/Ã™â€¡Ã˜Â´Ã˜Â¯Ã˜Â§Ã˜Â± */
    --success: #28a745;
    --success-bg: #d4edda;
    --success-text: #155724;
    
    --danger: #dc3545;
    --danger-bg: #f8d7da;
    --danger-text: #721c24;
    
    --warning: #ffc107;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    
    --info: #17a2b8;
    
    /* Ã˜Â±Ã™â€ ÃšÂ¯Ã¢â‚¬Å’Ã™â€¡Ã˜Â§Ã›Å’ Ã˜Â®Ã˜Â§ÃšÂ©Ã˜Â³Ã˜ÂªÃ˜Â±Ã›Å’ */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Ã˜Â±Ã™â€ ÃšÂ¯Ã¢â‚¬Å’Ã™â€¡Ã˜Â§Ã›Å’ Ã™â€¦Ã˜ÂªÃ™â€  Ã™Ë† Ã™Â¾Ã˜Â³Ã¢â‚¬Å’Ã˜Â²Ã™â€¦Ã›Å’Ã™â€ Ã™â€¡ */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    
    /* Ã˜Â³Ã˜Â§Ã›Å’Ã˜Â²Ã¢â‚¬Å’Ã™â€¡Ã˜Â§ */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --border-radius-sm: 4px;
    
    /* Ã˜Â³Ã˜Â§Ã›Å’Ã™â€¡Ã¢â‚¬Å’Ã™â€¡Ã˜Â§ */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================================
   3. Reset Ã™Ë† Ã˜Â§Ã˜Â³Ã˜ÂªÃ˜Â§Ã›Å’Ã™â€žÃ¢â‚¬Å’Ã™â€¡Ã˜Â§Ã›Å’ Ã™Â¾Ã˜Â§Ã›Å’Ã™â€¡
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl;
    letter-spacing: 0.3px;
}

/* ============================================================
   4. Ã˜ÂªÃ˜Â§Ã›Å’Ã™Â¾Ã™Ë†ÃšÂ¯Ã˜Â±Ã˜Â§Ã™ÂÃ›Å’
   ============================================================ */

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================================
   5. Navigation / Navbar
   ============================================================ */

.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 0;
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar-menu a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-base);
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.navbar-menu a:hover {
    color: var(--primary);
}

.navbar-menu a:hover::after {
    width: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.logout-btn {
    background: var(--primary);
    color: var(--bg-white);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.logout-btn:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.logout-btn:active {
    transform: translateY(0);
}

/* ============================================================
   6. Container Ã™Ë† Layout
   ============================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
}

.container-sm {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
}

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
}

/* ============================================================
   7. Cards
   ============================================================ */

.card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: all var(--transition-base);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.card-body {
    padding: 0;
}

.card-footer {
    border-top: 1px solid var(--gray-200);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* ============================================================
   8. Ã™ÂÃ˜Â±Ã™â€¦Ã¢â‚¬Å’Ã™â€¡Ã˜Â§
   ============================================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: all var(--transition-base);
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-primary);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 35, 61, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-light);
}

input:disabled,
select:disabled,
textarea:disabled {
    background-color: var(--gray-100);
    cursor: not-allowed;
    opacity: 0.7;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================================
   9. Ã˜Â¯ÃšÂ©Ã™â€¦Ã™â€¡Ã¢â‚¬Å’Ã™â€¡Ã˜Â§
   ============================================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    text-align: center;
    user-select: none;
    box-shadow: var(--shadow-sm);
}

/* Primary Button */
.btn-primary {
    background: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Secondary Button */
.btn-secondary {
    background: var(--gray-600);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background: var(--gray-700);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Success Button */
.btn-success {
    background: var(--success);
    color: var(--bg-white);
}

.btn-success:hover {
    background: #218838;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Danger Button */
.btn-danger {
    background: var(--danger);
    color: var(--bg-white);
}

.btn-danger:hover {
    background: #c82333;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Small Button */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Large Button */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* Block Button */
.btn-block {
    width: 100%;
    display: block;
}

/* ============================================================
   10. Ã™Â¾Ã›Å’Ã˜Â§Ã™â€¦Ã¢â‚¬Å’Ã™â€¡Ã˜Â§ (Alerts)
   ============================================================ */

.message,
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    animation: slideInRight 0.3s ease;
    display: none;
}

@keyframes slideInRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message.show,
.alert {
    display: block;
}

/* Success Message */
.message.success,
.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #c3e6cb;
    border-right: 4px solid var(--success);
}

/* Error Message */
.message.error,
.alert-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid #f5c6cb;
    border-right: 4px solid var(--danger);
}

/* Warning Message */
.message.warning,
.alert-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid #ffeaa7;
    border-right: 4px solid var(--warning);
}

/* Info Message */
.message.info,
.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-right: 4px solid var(--info);
}

/* ============================================================
   11. Badges Ã™Ë† Labels
   ============================================================ */

.badge,
.role-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.role-badge.admin_master {
    background: #ffe0e0;
    color: #c41e3a;
}

.role-badge.admin {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.role-badge.user {
    background: var(--success-bg);
    color: var(--success-text);
}

/* ============================================================
   12. Ã˜Â¬Ã˜Â¯Ã˜Â§Ã™Ë†Ã™â€ž
   ============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

thead {
    background: var(--gray-100);
}

th {
    padding: 1rem;
    text-align: right;
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--text-secondary);
}

tbody tr:hover {
    background-color: var(--gray-100);
    transition: background-color var(--transition-base);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   13. Info Box
   ============================================================ */

.info-box {
    background: var(--gray-100);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border-right: 3px solid var(--primary);
}

.info-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.info-box p:first-child {
    margin-top: 0;
}

/* ============================================================
   14. Modal
   ============================================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.modal-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.modal-btn {
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.modal-btn-confirm {
    background: var(--danger);
    color: var(--bg-white);
}

.modal-btn-confirm:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.modal-btn-cancel {
    background: var(--gray-600);
    color: var(--bg-white);
}

.modal-btn-cancel:hover {
    background: var(--gray-700);
    transform: translateY(-2px);
}

/* ============================================================
   15. Pages - Ã˜ÂµÃ™ÂÃ˜Â­Ã˜Â§Ã˜Âª Ã™â€¦Ã˜Â®Ã˜ÂªÃ™â€žÃ™Â
   ============================================================ */

/* Ã˜ÂµÃ™ÂÃ˜Â­Ã˜Â§Ã˜Âª Auth (Ã™Ë†Ã˜Â±Ã™Ë†Ã˜Â¯/Ã˜Â«Ã˜Â¨Ã˜ÂªÃ¢â‚¬Å’Ã™â€ Ã˜Â§Ã™â€¦) */
body.page-auth {
    background: linear-gradient(135deg, #E8EAF0 0%, #E7EAF0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.auth-container {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    padding: 3rem 2.5rem;
    animation: fadeInUp 0.5s ease;
}

.logo-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-white);
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(232, 35, 61, 0.2);
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.logotype {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.auth-title {
    text-align: center;
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.auth-form {
    width: 100%;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.auth-links a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.auth-links a:hover {
    opacity: 0.8;
}

/* Ã˜ÂµÃ™ÂÃ˜Â­Ã™â€¡ Dashboard */
.welcome-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease 0.1s both;
}

.welcome-section h1 {
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.user-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease 0.2s both;
}

.user-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.65rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.admin-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
    animation: fadeInUp 0.5s ease 0.3s both;
}

.admin-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.75rem;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.quick-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.quick-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.quick-link span {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

/* Ã˜ÂµÃ™ÂÃ˜Â­Ã™â€¡ Edit/Add User */
.page-title {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    justify-content: center;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--primary);
}

.section-title:first-of-type {
    margin-top: 0;
}

/* Ã˜ÂµÃ™ÂÃ˜Â­Ã™â€¡ Users */
.users-container {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
}

.users-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.users-header h2 {
    margin: 0;
}

.table-wrapper {
    overflow-x: auto;
}

/* Action Buttons */
.actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit {
    background: var(--info);
    color: var(--bg-white);
}

.btn-edit:hover {
    background: #117a8b;
}

.btn-delete {
    background: var(--danger);
    color: var(--bg-white);
}

.btn-delete:hover {
    background: #c82333;
}

.btn-add {
    background: var(--success);
    color: var(--bg-white);
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.btn-add:hover {
    background: #218838;
}

/* ============================================================
   16. Responsive Design
   ============================================================ */

@media (max-width: 1024px) {
    .container {
        padding: 2rem 1rem;
    }

    .navbar-menu {
        gap: 1.5rem;
    }

    .quick-links {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .navbar-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .navbar-menu {
        gap: 1rem;
        width: 100%;
        order: 3;
        flex-direction: column;
    }

    .user-info {
        width: 100%;
    }

    .auth-container {
        padding: 2.5rem 1.5rem;
        max-width: 100%;
    }

    .logo {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        max-width: 100%;
        padding: 1.5rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .info-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .users-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .admin-section {
        padding: 1.5rem;
    }

    .welcome-section {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .auth-container {
        padding: 2rem 1.25rem;
    }

    .logo {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .auth-title {
        font-size: 1.35rem;
    }

    .container {
        padding: 1.5rem 0.75rem;
    }

    .card {
        padding: 1.25rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    input, select, textarea {
        padding: 0.65rem 0.85rem;
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 1.25rem;
    }

    .modal-buttons {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }

    .modal-btn {
        width: 100%;
    }

    th, td {
        padding: 0.65rem 0.4rem;
        font-size: 0.85rem;
    }

    .actions {
        flex-direction: column;
    }

    .btn-small {
        width: 100%;
        padding: 0.5rem;
    }

    .info-box {
        padding: 1rem;
    }

    .quick-link span {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .section-title {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* ============================================================
   17. Print Styles
   ============================================================ */

@media print {
    .navbar,
    .logout-btn,
    .form-actions,
    .actions,
    .btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    table {
        width: 100%;
    }

    th, td {
        border: 1px solid #ddd;
    }
}

/* ============================================================
   18. Accessibility
   ============================================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================================
   19. Utility Classes
   ============================================================ */

.text-center {
    text-align: center;
}

.text-right {
    text-align: left;
}

.text-left {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.d-flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

/* ============================================================
   20. Loading Ã™Ë† States
   ============================================================ */

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(232, 35, 61, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================================
   21. Landing Page
   ============================================================ */

.landing-container {
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 500px;
    width: 100%;
    animation: fadeInUp 0.6s ease;
}

.landing-container h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.landing-container p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.download-btn {
    background: linear-gradient(135deg, var(--secondary) 0%, #764ba2 100%);
    color: var(--bg-white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.download-btn:active {
    transform: translateY(-1px);
}

/* ============================================================
   22. Error Page
   ============================================================ */

.error-container {
    text-align: center;
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    animation: fadeInUp 0.6s ease;
}

.error-code {
    font-size: 6rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: bounceIn 0.6s ease;
}

.error-container h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.error-container p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.back-home {
    display: inline-block;
    background: var(--primary);
    color: var(--bg-white);
    padding: 0.85rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.back-home:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.back-home:active {
    transform: translateY(0);
}

/* ============================================================
   23. Scrollbar Styling
   ============================================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* ============================================================
   24. Selection Styling
   ============================================================ */

::selection {
    background: var(--primary);
    color: var(--bg-white);
}

::-moz-selection {
    background: var(--primary);
    color: var(--bg-white);
}

/* ============================================================
   Campaign Styles - Ã˜Â§Ã˜Â³Ã˜ÂªÃ˜Â§Ã›Å’Ã™â€žÃ¢â‚¬Å’Ã™â€¡Ã˜Â§Ã›Å’ Ã˜Â¬Ã˜Â³Ã˜ÂªÃ˜Â§Ã˜Â±Ã™â€¡Ã˜Â§
   Ã˜Â§Ã›Å’Ã™â€  Ã˜Â§Ã˜Â³Ã˜ÂªÃ˜Â§Ã›Å’Ã™â€žÃ¢â‚¬Å’Ã™â€¡Ã˜Â§ Ã˜Â±Ã˜Â§ Ã˜Â¨Ã™â€¡ Ã™ÂÃ˜Â§Ã›Å’Ã™â€ž style.css Ã˜Â§Ã˜ÂµÃ™â€žÃ›Å’ Ã˜Â§Ã˜Â¶Ã˜Â§Ã™ÂÃ™â€¡ ÃšÂ©Ã™â€ Ã›Å’Ã˜Â¯
   ============================================================ */

.campaigns-container {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-align: center;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.stats-number {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--gray-100);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.creator-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.creator-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.creator-username {
    font-size: 0.8rem;
    color: var(--text-light);
}

.text-muted {
    color: var(--text-light);
    font-style: italic;
}

.text-center {
    text-align: center !important;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    max-height: 300px;
    overflow-y: auto;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.checkbox-item:hover label {
    color: var(--primary);
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.required {
    color: var(--danger);
    font-weight: 600;
}

.no-data {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* Responsive for campaigns */
@media (max-width: 768px) {
    .checkbox-group {
        grid-template-columns: 1fr;
        max-height: 200px;
    }
    
    .stats-number {
        font-size: 0.85rem;
        padding: 0.2rem 0.4rem;
    }
    
    .creator-info {
        font-size: 0.85rem;
    }
    
    .creator-username {
        display: none;
    }
}

/* Scrollbar for checkbox group */
.checkbox-group::-webkit-scrollbar {
    width: 6px;
}

.checkbox-group::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 3px;
}

.checkbox-group::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

.checkbox-group::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* ===================================================================
   Ã˜Â§Ã˜Â³Ã˜ÂªÃ˜Â§Ã›Å’Ã™â€žÃ¢â‚¬Å’Ã™â€¡Ã˜Â§Ã›Å’ Ã™â€¦Ã˜Â¯Ã›Å’Ã˜Â±Ã›Å’Ã˜Âª Ã™ÂÃ›Å’Ã˜Â¯ (Feeds Management Styles)
   Ã™â€¦Ã›Å’Ã¢â‚¬Å’Ã˜ÂªÃ™Ë†Ã˜Â§Ã™â€ Ã›Å’Ã˜Â¯ Ã˜Â§Ã›Å’Ã™â€  ÃšÂ©Ã˜Â¯Ã™â€¡Ã˜Â§ Ã˜Â±Ã˜Â§ Ã˜Â¨Ã™â€¡ Ã™ÂÃ˜Â§Ã›Å’Ã™â€ž style.css Ã˜Â§Ã˜Â¶Ã˜Â§Ã™ÂÃ™â€¡ ÃšÂ©Ã™â€ Ã›Å’Ã˜Â¯
   =================================================================== */

/* Ã°Å¸Å½Â¨ Ã˜Â±Ã™â€ ÃšÂ¯Ã¢â‚¬Å’Ã™â€¡Ã˜Â§ Ã™Ë† Ã™â€¦Ã˜ÂªÃ˜ÂºÃ›Å’Ã˜Â±Ã™â€¡Ã˜Â§ */
:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --danger-color: #dc3545;
    --danger-hover: #c82333;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --secondary-color: #6c757d;
    --light-bg: #f8f9fa;
    --border-color: #ddd;
    --text-color: #333;
}

/* ===================================================================
   ÃšÂ©Ã™â€ Ã˜ÂªÃ›Å’Ã™â€ Ã˜Â± Ã˜Â§Ã˜ÂµÃ™â€žÃ›Å’
   =================================================================== */
.feeds-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    direction: rtl;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.feeds-container h1 {
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: right;
    font-size: 28px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
}

.feeds-container h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: right;
    font-size: 22px;
}

/* ===================================================================
   Ã™Â¾Ã›Å’Ã˜Â§Ã™â€¦Ã¢â‚¬Å’Ã™â€¡Ã˜Â§Ã›Å’ Ã˜Â§Ã˜Â·Ã™â€žÃ˜Â§Ã˜Â¹Ã˜Â§Ã˜Âª
   =================================================================== */
.message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-right: 4px solid;
    font-weight: 500;
    animation: slideIn 0.3s ease-in-out;
    text-align: right;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: var(--success-color);
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: var(--danger-color);
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================================
   Ã˜Â¨Ã˜Â®Ã˜Â´Ã¢â‚¬Å’Ã™â€¡Ã˜Â§Ã›Å’ Ã™ÂÃ˜Â±Ã™â€¦
   =================================================================== */
.form-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-color);
    transition: box-shadow 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===================================================================
   ÃšÂ¯Ã˜Â±Ã™Ë†Ã™â€¡Ã¢â‚¬Å’Ã™â€¡Ã˜Â§Ã›Å’ Ã™ÂÃ˜Â±Ã™â€¦
   =================================================================== */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
    text-transform: capitalize;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    color: var(--text-color);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-group select[multiple] {
    min-height: 150px;
    resize: vertical;
}

.form-group small {
    color: #666;
    margin-top: 5px;
    display: block;
    font-size: 12px;
}

/* ===================================================================
   ÃšÂ¯Ã˜Â±Ã™Ë†Ã™â€¡Ã¢â‚¬Å’Ã™â€¡Ã˜Â§Ã›Å’ Checkbox
   =================================================================== */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

/* ===================================================================
   Ã˜Â¯ÃšÂ©Ã™â€¦Ã™â€¡Ã¢â‚¬Å’Ã™â€¡Ã˜Â§
   =================================================================== */
.btn {
    padding: 12px 24px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===================================================================
   Ã˜Â¬Ã˜Â¯Ã™Ë†Ã™â€žÃ¢â‚¬Å’Ã™â€¡Ã˜Â§
   =================================================================== */
.feeds-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.feeds-table thead {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
}

.feeds-table th {
    padding: 15px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.feeds-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.feeds-table tbody tr {
    transition: background-color 0.3s ease;
}

.feeds-table tbody tr:hover {
    background-color: var(--light-bg);
}

.feeds-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===================================================================
   Ã™Ë†Ã˜Â¶Ã˜Â¹Ã›Å’Ã˜Âª (Status)
   =================================================================== */
.status-active {
    color: var(--success-color);
    font-weight: 700;
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
}

.status-inactive {
    color: var(--danger-color);
    font-weight: 700;
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
}

/* ===================================================================
   Ã˜Â¯ÃšÂ©Ã™â€¦Ã™â€¡Ã¢â‚¬Å’Ã™â€¡Ã˜Â§Ã›Å’ Ã˜Â¹Ã™â€¦Ã™â€žÃ›Å’Ã˜Â§Ã˜Âª
   =================================================================== */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.action-buttons .btn {
    margin-right: 0;
    padding: 8px 12px;
    font-size: 12px;
}

/* ===================================================================
   Ã™â€¦Ã™Ë†Ã˜Â¯Ã˜Â§Ã™â€žÃ¢â‚¬Å’Ã™â€¡Ã˜Â§ (Modals)
   =================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    direction: rtl;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    cursor: pointer;
    float: left;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #000;
}

.modal-content h2 {
    margin-top: 0;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

/* ===================================================================
   ÃšÂ©Ã˜Â§Ã˜Â±Ã˜ÂªÃ¢â‚¬Å’Ã™â€¡Ã˜Â§Ã›Å’ Ã˜Â¢Ã™â€¦Ã˜Â§Ã˜Â± (Stat Cards)
   =================================================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

/* ===================================================================
   Ã˜ÂªÃ˜Â¬Ã˜Â§Ã™Ë†Ã˜Â¨ (Responsive Design)
   =================================================================== */
@media (max-width: 768px) {
    .feeds-container {
        padding: 15px;
    }

    .feeds-container h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .feeds-table {
        font-size: 12px;
    }

    .feeds-table th,
    .feeds-table td {
        padding: 10px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .modal-content {
        margin: 30% auto;
        width: 95%;
        padding: 20px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .feeds-container {
        padding: 10px;
    }

    .feeds-table {
        font-size: 11px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }
}

/* ===================================================================
   Ã˜Â­Ã˜Â§Ã™â€žÃ˜Âª Dark Mode (Ã˜Â§Ã˜Â®Ã˜ÂªÃ›Å’Ã˜Â§Ã˜Â±Ã›Å’)
   =================================================================== */
@media (prefers-color-scheme: dark) {
    .feeds-container {
        background-color: #2d2d2d;
    }

    .form-section {
        background-color: #3d3d3d;
        color: #e0e0e0;
    }

    .feeds-table {
        background-color: #3d3d3d;
        color: #e0e0e0;
    }

    .feeds-table tbody tr:hover {
        background-color: #4d4d4d;
    }

    .modal-content {
        background-color: #3d3d3d;
        color: #e0e0e0;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: #2d2d2d;
        color: #e0e0e0;
        border-color: #555;
    }
}

/* ===================================================================
   Ã˜Â§Ã™â€ Ã›Å’Ã™â€¦Ã›Å’Ã˜Â´Ã™â€ Ã¢â‚¬Å’Ã™â€¡Ã˜Â§Ã›Å’ Ã™â€žÃ™Ë†Ã˜Â¯Ã›Å’Ã™â€ ÃšÂ¯
   =================================================================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



.main-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    margin-top: 4rem;
    padding: 3rem 0 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.footer-section {
    animation: fadeInUp 0.6s ease;
}

.footer-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: #fff;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Footer Badges */
.footer-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-badges .badge {
    background: rgba(232, 35, 61, 0.15);
    color: var(--primary-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(232, 35, 61, 0.3);
    transition: all var(--transition-base);
}

.footer-badges .badge:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 35, 61, 0.4);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: #bdc3c7;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    display: inline-block;
    position: relative;
    padding-right: 1.25rem;
}

.footer-links a::before {
    content: 'Ã¢â€”â€ž';
    position: absolute;
    right: 0;
    opacity: 0;
    transition: all var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-right: 1.5rem;
}

.footer-links a:hover::before {
    opacity: 1;
    right: 0.25rem;
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
    font-size: 0.95rem;
    transition: all var(--transition-base);
}

.footer-contact li:hover {
    color: #fff;
    transform: translateX(-5px);
}

.footer-contact .icon {
    font-size: 1.25rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all var(--transition-base);
}

.footer-contact li:hover .icon {
    background: var(--primary);
    transform: scale(1.1) rotate(5deg);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ecf0f1;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(232, 35, 61, 0.4);
    border-color: var(--primary);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(
        to left,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    margin: 3rem 0 1.5rem 0;
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-copyright {
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0;
    color: #95a5a6;
}

.footer-policy-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-policy-links a {
    color: #95a5a6;
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

.footer-policy-links a:hover {
    color: var(--primary-light);
}

.footer-policy-links .separator {
    color: #555;
    font-size: 0.9rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .main-footer {
        padding: 2rem 0 0 0;
        margin-top: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-policy-links {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-title {
        font-size: 1.1rem;
    }

    .footer-description,
    .footer-links a,
    .footer-contact li {
        font-size: 0.9rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .footer-badges .badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.85rem;
    }
}

/* Footer Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scroll to Top Button (Optional Enhancement) */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(232, 35, 61, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(232, 35, 61, 0.5);
}

.scroll-to-top::before {
    content: 'Ã¢â€“Â²';
    font-size: 1.2rem;
}

/* ============================================================
   Landing Page - Ã˜ÂµÃ™ÂÃ˜Â­Ã™â€¡ Ã˜Â§Ã˜ÂµÃ™â€žÃ›Å’
   ============================================================ */

body.page-report {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
/* ============================================================
   Active Users Panel - Ù¾Ù†Ù„ Ú©Ø§Ø±Ø¨Ø±Ø§Ù† ÙØ¹Ø§Ù„
   ============================================================ */

/* Search Section */
.search-section {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

/* Date Inputs */
.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Criteria Section */
.criteria-section {
    margin-bottom: 2rem;
}

.criteria-section h3 {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--gray-100);
    border-radius: var(--border-radius-sm);
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.criterion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.criterion-item:hover {
    background: var(--gray-200);
}

.criterion-label {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.criterion-input {
    width: 80px;
    text-align: center;
    padding: 0.5rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
}

.criterion-input:focus {
    border-color: var(--primary);
    outline: none;
}

.campaign-item {
    padding-right: 1.5rem;
    position: relative;
}

.campaign-item::before {
    content: 'â†’';
    position: absolute;
    right: 0.5rem;
    color: var(--primary);
}

/* Search Button */
.btn-search {
    background: var(--primary);
    color: var(--bg-white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    width: 100%;
    margin-top: 1rem;
}

.btn-search:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-search:active {
    transform: translateY(0);
}

/* Results Header */
.results-header {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-info {
    color: var(--text-secondary);
}

.results-count {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.btn-back {
    background: var(--gray-600);
    color: var(--bg-white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-block;
}

.btn-back:hover {
    background: var(--gray-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Users Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* User Card */
.user-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.user-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.user-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
}

.user-profile {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
    background: var(--gray-300);
}

.user-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-badge {
    font-size: 1rem;
}

.user-username {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.user-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 700;
    font-size: 1rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.user-description {
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-200);
    min-height: 60px;
}

.user-location {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* User Tweets */
.user-tweets {
    padding: 1rem 1.5rem;
}

.tweets-header {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tweet-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.tweet-item {
    padding: 0.75rem;
    background: var(--gray-100);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.tweet-item:hover {
    background: var(--gray-200);
    transform: translateX(-3px);
}

.tweet-text {
    font-size: 0.85rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tweet-date {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-results-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Responsive Design for Active Users */
@media (max-width: 768px) {
    .date-inputs {
        grid-template-columns: 1fr;
    }

    .criteria-grid {
        grid-template-columns: 1fr;
    }

    .users-grid {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Custom Scrollbar for Tweet List */
.tweet-list::-webkit-scrollbar {
    width: 6px;
}

.tweet-list::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--border-radius-sm);
}

.tweet-list::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--border-radius-sm);
}

.tweet-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}