/* SendBerry Style SMS Application */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #4F7AEB;
    --primary-blue-light: #6B8EFF;
    --primary-blue-dark: #2563EB;
    --green-success: #22C55E;
    --yellow-warning: #F59E0B;
    --red-danger: #EF4444;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --surface: #FFFFFF;
    --surface-alt: #F9FAFB;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --border-color: #E5E7EB;
    --sidebar-width: 280px;
    --header-height: 80px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.2s ease-in-out;
}

body[data-theme="dark"] {
    --primary-blue: #7EA8FF;
    --primary-blue-light: #9EC0FF;
    --primary-blue-dark: #5C82FF;
    --green-success: #34D399;
    --yellow-warning: #FBBF24;
    --red-danger: #F87171;
    --gray-50: #0F172A;
    --gray-100: #111827;
    --gray-200: #1F2937;
    --gray-300: #27334A;
    --gray-400: #3C4B6B;
    --gray-500: #6B7A99;
    --gray-600: #94A3B8;
    --gray-700: #CBD5F5;
    --gray-800: #E2E8F0;
    --gray-900: #F8FAFC;
    --surface: #1E2536;
    --surface-alt: #0F172A;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5F5;
    --border-color: #2A3651;
    color: var(--text-primary);
    background-color: var(--surface-alt);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--surface-alt);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    height: 100vh;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--gray-800);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    padding: var(--space-6) var(--space-5);
    border-bottom: 1px solid var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.sidebar .logo img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    transition: var(--transition);
}

.sidebar .logo img:hover {
    transform: scale(1.05);
}

.sidebar .logo h2 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.sidebar .logo i {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.sidebar nav {
    flex: 1;
    padding: var(--space-4) 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: var(--space-1);
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    color: var(--gray-300);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar ul li a:hover {
    background: var(--gray-700);
    color: var(--white);
}

.sidebar ul li a.active {
    background: var(--gray-700);
    color: var(--white);
    border-right: 3px solid var(--primary-blue);
}

.sidebar ul li a i {
    width: 20px;
    text-align: center;
    color: var(--primary-blue);
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    background: var(--surface-alt);
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0 var(--space-8);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.header .header-right {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.header .user-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--text-secondary);
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    min-height: 36px;
}

.theme-toggle-btn:hover {
    border-color: var(--primary-blue);
    color: var(--text-primary);
}

.theme-toggle-btn i {
    font-size: 1rem;
}

.content {
    padding: var(--space-8);
}

.welcome-section {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.welcome-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.welcome-section p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: var(--space-4);
    font-size: 0.875rem;
}

.quick-links {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: var(--border-radius);
    padding: var(--space-6);
    color: var(--white);
}

.quick-links h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-5);
    color: var(--white);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.quick-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.quick-link i {
    width: 20px;
    text-align: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.stats-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.stat-card.blue {
    border-left: 4px solid var(--primary-blue);
}

.stat-card.green {
    border-left: 4px solid var(--green-success);
}

.stat-card.yellow {
    border-left: 4px solid var(--yellow-warning);
}

.stat-card .stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.stat-card .stat-title {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.stat-card .stat-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.stat-card.blue .stat-icon {
    background: var(--primary-blue);
}

.stat-card.green .stat-icon {
    background: var(--green-success);
}

.stat-card.yellow .stat-icon {
    background: var(--yellow-warning);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.stat-card .stat-subtitle {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary-blue);
    color: var(--white);
}

.btn:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-success {
    background: var(--green-success);
}

.btn-success:hover {
    background: #16a34a;
}

.btn-warning {
    background: var(--yellow-warning);
    color: var(--gray-900);
}

.btn-warning:hover {
    background: #d97706;
}

.btn-danger {
    background: var(--red-danger);
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: 1rem;
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: 0.75rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.logout-btn {
    background: var(--red-danger);
    color: var(--white);
    padding: var(--space-2) var(--space-3);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.form-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    max-width: 600px;
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(79, 122, 235, 0.1);
}

.table-container {
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-6);
}

.table-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: var(--space-5) var(--space-6);
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.table-actions {
    display: flex;
    gap: var(--space-3);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container thead {
    background: var(--gray-50);
}

.table-container thead tr {
    display: table-row;
}

.table-container tbody tr {
    display: table-row;
    transition: background-color 0.15s ease;
}

.table-container tbody tr:hover {
    background: var(--gray-50);
}

.table-container th {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid var(--gray-200);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    background: var(--gray-50);
}

.table-container td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-900);
    font-size: 0.875rem;
    vertical-align: middle;
}

.table-container tbody tr:last-child td {
    border-bottom: none;
}

table tbody tr {
    transition: background-color 0.15s ease;
}

table tbody tr:hover {
    background: var(--gray-50);
}

table tbody tr:last-child td {
    border-bottom: none;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status.sent,
.status.delivered {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green-success);
}

.status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--yellow-warning);
}

.status.failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red-danger);
}

.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--space-5);
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green-success);
    border-color: rgba(34, 197, 94, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red-danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: var(--space-8);
}

.auth-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-10);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.auth-card h2 i {
    color: var(--primary-blue);
}

.auth-links {
    text-align: center;
    margin-top: var(--space-5);
}

.auth-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    color: var(--primary-blue-dark);
}

.mobile-menu-btn {
    display: none;
    position: fixed;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 1001;
    background: var(--primary-blue);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--primary-blue-dark);
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .feature-cards {
        grid-template-columns: 1fr;
    }
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    .stats-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .content {
        padding: var(--space-4);
        margin-top: 60px;
    }
    .header {
        padding: 0 var(--space-4);
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.25rem;
    }
    .content {
        padding: var(--space-3);
    }
    .form-container {
        padding: var(--space-5);
    }
}

/* Enhanced Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Apply animations */
.feature-card,
.stat-card,
.welcome-section,
.quick-links {
    animation: slideUp 0.5s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced Cards */
.feature-card,
.stat-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before,
.stat-card:hover::before {
    left: 100%;
}

/* Enhanced Buttons */
.btn,
.quick-link,
.logout-btn {
    position: relative;
    overflow: hidden;
}

.btn::after,
.quick-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after,
.quick-link:hover::after {
    width: 300px;
    height: 300px;
}

/* Enhanced Form Inputs */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: translateY(-2px);
}

.form-group {
    position: relative;
}

.form-group label {
    transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group select:focus ~ label {
    color: var(--primary-blue);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Table */
table tbody tr {
    transition: var(--transition);
}

table tbody tr:hover {
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Progress Bars */
.progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin: var(--space-2) 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Enhanced Sidebar */
.sidebar {
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar ul li a {
    position: relative;
}

.sidebar ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-blue);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar ul li a:hover::before,
.sidebar ul li a.active::before {
    transform: scaleY(1);
}

/* Enhanced Header */
.header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

/* Notification Badge */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--red-danger);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Enhanced Status Badges */
.status {
    position: relative;
    overflow: hidden;
}

.status::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
}

.status.sent::before,
.status.delivered::before {
    background: var(--green-success);
}

.status.pending::before {
    background: var(--yellow-warning);
}

.status.failed::before {
    background: var(--red-danger);
}

/* Tooltips */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: var(--space-2) var(--space-3);
    background: var(--gray-900);
    color: var(--white);
    font-size: 0.75rem;
    white-space: nowrap;
    border-radius: var(--border-radius-sm);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.tooltip:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Enhanced Quick Links Grid */
.quick-links-grid {
    position: relative;
}

.quick-link {
    backdrop-filter: blur(10px);
}

/* Card Hover Effects */
.feature-card,
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover,
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(79, 122, 235, 0.15);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue-dark);
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Enhanced Alerts with Icons */
.alert {
    position: relative;
    padding-left: 50px;
}

.alert::before {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.25rem;
}

.alert-success::before {
    content: '\f058';
}

.alert-error::before {
    content: '\f06a';
}

.alert-warning::before {
    content: '\f071';
}

/* Theme Toggle Floating Button */
.theme-toggle-fab {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(79, 122, 235, 0.35);
    z-index: 1100;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(79, 122, 235, 0.45);
}

.theme-toggle-fab i {
    font-size: 1.2rem;
}

body[data-theme="dark"] {
    color-scheme: dark;
}

body[data-theme="dark"] .theme-toggle-fab {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

body[data-theme="dark"] .header,
body[data-theme="dark"] .welcome-section,
body[data-theme="dark"] .stat-card,
body[data-theme="dark"] .feature-card,
body[data-theme="dark"] .modern-action-card,
body[data-theme="dark"] .quick-link,
body[data-theme="dark"] .table-container,
body[data-theme="dark"] table,
body[data-theme="dark"] .form-container,
body[data-theme="dark"] .auth-card,
body[data-theme="dark"] .section-header-modern,
body[data-theme="dark"] .quick-actions-modern,
body[data-theme="dark"] .notifications .notification,
body[data-theme="dark"] .card-shadow,
body[data-theme="dark"] .table {
    background: var(--surface);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: none;
}

body[data-theme="dark"] .header h1,
body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] h5,
body[data-theme="dark"] h6 {
    color: var(--text-primary);
}

body[data-theme="dark"] p,
body[data-theme="dark"] label,
body[data-theme="dark"] span,
body[data-theme="dark"] .header .user-info {
    color: var(--text-secondary);
}

body[data-theme="dark"] input,
body[data-theme="dark"] textarea,
body[data-theme="dark"] select {
    background: #0f172a;
    color: var(--text-primary);
    border-color: var(--border-color);
}

body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
    color: var(--text-secondary);
}

body[data-theme="dark"] table th {
    background: #1c2536;
    color: var(--text-primary);
}

body[data-theme="dark"] table td,
body[data-theme="dark"] table th,
body[data-theme="dark"] table tr {
    border-color: var(--border-color);
}

body[data-theme="dark"] .btn {
    color: #fff;
}

body[data-theme="dark"] .btn.secondary,
body[data-theme="dark"] .btn-outline {
    color: var(--text-primary);
    background: transparent;
    border-color: var(--border-color);
}

body[data-theme="dark"] .notifications .notification button {
    color: var(--text-secondary);
}

body[data-theme="dark"] .auto-refresh-status,
body[data-theme="dark"] .manual-refresh,
body[data-theme="dark"] .info-box,
body[data-theme="dark"] .warning-box,
body[data-theme="dark"] .refresh-container,
body[data-theme="dark"] .status-container,
body[data-theme="dark"] .search-form,
body[data-theme="dark"] .result-table,
body[data-theme="dark"] .contacts-section,
body[data-theme="dark"] .contacts-table,
body[data-theme="dark"] .group-header,
body[data-theme="dark"] .stats-bar,
body[data-theme="dark"] .batch-stats .stat-card,
body[data-theme="dark"] .campaign-header,
body[data-theme="dark"] .campaign-meta .meta-item,
body[data-theme="dark"] .stat-box,
body[data-theme="dark"] .status-card,
body[data-theme="dark"] .processing-container,
body[data-theme="dark"] .form-section,
body[data-theme="dark"] .preview-section,
body[data-theme="dark"] .time-estimate,
body[data-theme="dark"] .info-card,
body[data-theme="dark"] .contacts-table .contact-row,
body[data-theme="dark"] .quick-actions .create-btn,
body[data-theme="dark"] .refresh-btn,
body[data-theme="dark"] .search-btn,
body[data-theme="dark"] .refresh-notice,
body[data-theme="dark"] .delay-info,
body[data-theme="dark"] .progress-info,
body[data-theme="dark"] .stats-preview,
body[data-theme="dark"] .error-details,
body[data-theme="dark"] .info-card,
body[data-theme="dark"] .campaign-meta,
body[data-theme="dark"] .contacts-grid,
body[data-theme="dark"] .contacts-table .contact-actions button,
body[data-theme="dark"] .status-container .result-table,
body[data-theme="dark"] .contact-row,
body[data-theme="dark"] .contacts-section form,
body[data-theme="dark"] .contacts-section textarea,
body[data-theme="dark"] .contacts-section input,
body[data-theme="dark"] .contacts-section select,
body[data-theme="dark"] .message-card,
body[data-theme="dark"] .status-card.success-card,
body[data-theme="dark"] .status-card.error-card {
    background: var(--surface);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body[data-theme="dark"] .manual-refresh {
    background: rgba(249, 115, 22, 0.1);
    border-left-color: var(--yellow-warning);
    color: var(--text-primary);
}

body[data-theme="dark"] .auto-refresh-status {
    background: rgba(34, 197, 94, 0.12);
    border-left-color: var(--green-success);
    color: var(--text-primary);
}

body[data-theme="dark"] .info-box {
    border-color: var(--primary-blue);
}

body[data-theme="dark"] .warning-box,
body[data-theme="dark"] .delay-info {
    border-color: var(--yellow-warning);
}

body[data-theme="dark"] .time-estimate {
    background: linear-gradient(135deg, rgba(126, 168, 255, 0.25), rgba(92, 130, 255, 0.35));
    color: var(--text-primary);
}

body[data-theme="dark"] .stat-card,
body[data-theme="dark"] .stat-box,
body[data-theme="dark"] .stat-card .stat-title,
body[data-theme="dark"] .stat-card .stat-subtitle {
    color: var(--text-primary);
}

body[data-theme="dark"] .sidebar {
    background: #0b1220;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

body[data-theme="dark"] .sidebar .logo {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .sidebar ul li a {
    color: rgba(248, 250, 252, 0.8);
}

body[data-theme="dark"] .sidebar ul li a:hover,
body[data-theme="dark"] .sidebar ul li a.active {
    background: rgba(126, 168, 255, 0.15);
    color: #ffffff;
    border-right-color: var(--primary-blue);
}

body[data-theme="dark"] .sidebar ul li a i {
    color: var(--primary-blue-light);
}

body[data-theme="dark"] .theme-toggle-btn {
    background: var(--surface);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

body[data-theme="dark"] .theme-toggle-btn:hover {
    color: var(--text-primary);
}

.alert-info::before {
    content: '\f05a';
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--primary-blue-light);
    color: var(--white);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.hidden { display: none; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: var(--space-4); }