/* CSS Variables for Theme Support */

:root {
    /* Light Theme Colors */
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-tertiary: #333333;
    --border-primary: #e1e8ed;
    --border-secondary: rgba(0, 0, 0, 0.1);
    --shadow-primary: rgba(0, 0, 0, 0.1);
    --shadow-secondary: rgba(0, 0, 0, 0.12);
    --shadow-tertiary: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-tertiary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-quaternary: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --status-active-bg: #d4edda;
    --status-active-text: #155724;
    --status-inactive-bg: #f8d7da;
    --status-inactive-text: #721c24;
    --warning-bg: rgba(243, 156, 18, 0.1);
    --warning-text: #f39c12;
    --success-bg: rgba(39, 174, 96, 0.1);
    --success-text: #27ae60;
    --danger-bg: rgba(231, 76, 60, 0.1);
    --danger-text: #e74c3c;
}

.dark-theme {
    /* Dark Theme Colors */
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --text-tertiary: #e0e0e0;
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.2);
    --shadow-primary: rgba(0, 0, 0, 0.3);
    --shadow-secondary: rgba(0, 0, 0, 0.5);
    --shadow-tertiary: rgba(0, 0, 0, 0.7);
    --gradient-primary: linear-gradient(135deg, #7f8ff3 0%, #9969c7 100%);
    --gradient-secondary: linear-gradient(135deg, #f4a6fc 0%, #f77f8e 100%);
    --gradient-tertiary: linear-gradient(135deg, #6fbdfe 0%, #4af4fe 100%);
    --gradient-quaternary: linear-gradient(135deg, #5cec8f 0%, #52fbe0 100%);
    --accent-primary: #7f8ff3;
    --accent-secondary: #9969c7;
    --status-active-bg: rgba(39, 174, 96, 0.2);
    --status-active-text: #27ae60;
    --status-inactive-bg: rgba(231, 76, 60, 0.2);
    --status-inactive-text: #e74c3c;
    --warning-bg: rgba(243, 156, 18, 0.2);
    --warning-text: #f39c12;
    --success-bg: rgba(39, 174, 96, 0.2);
    --success-text: #2ecc71;
    --danger-bg: rgba(231, 76, 60, 0.2);
    --danger-text: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-tertiary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

header {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-primary);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

h1 {
    color: var(--text-primary);
    font-size: 28px;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 14px;
}


/* Summary Cards */

.summary-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.summary-card {
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px var(--shadow-secondary);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Alternative approach for browsers that don't support color-mix */

@supports not (background-color: color-mix(in srgb, white 50%, black)) {
    .client-card:hover {
        background-color: var(--bg-tertiary);
        box-shadow: 0 8px 24px var(--shadow-secondary), inset 0 0 0 1000px rgba(102, 126, 234, 0.05);
    }
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-secondary);
    /* Add subtle glow effect instead of changing background */
    filter: brightness(1.05);
}

.summary-card:nth-child(2) {
    background: var(--gradient-secondary);
}

.summary-card:nth-child(3) {
    background: var(--gradient-tertiary);
}

.summary-card:nth-child(4) {
    background: var(--gradient-quaternary);
}

.card-icon {
    font-size: 48px;
    margin-right: 20px;
}

.card-value {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.card-label {
    font-size: 14px;
    opacity: 0.9;
}


/* Charts Section */

.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.chart-container {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-primary);
    position: relative;
    min-height: 300px;
    transition: all 0.3s ease;
}

.chart-container h2 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 20px;
}

.chart-container canvas {
    max-height: 250px;
}


/* Clients Section */

.clients-section {
    background-color: var(--bg-secondary);
    margin-top: 30px;
    padding-top: 100px;
    padding-right: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-primary);
    position: relative;
    transition: all 0.3s ease;
}


/* Ensure proper spacing when navigating via anchor links */

#clients {
    scroll-margin-top: 90px;
}

.clients-section .section-header {
    margin-bottom: 30px;
    text-align: center;
}

.clients-section h2 {
    margin-bottom: 15px;
    color: var(--text-primary);
}


/* Search Bar Styles */

.search-bar {
    margin-bottom: 25px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-size: 18px;
    transition: all 0.3s ease;
    pointer-events: none;
}

#searchInput {
    width: 100%;
    padding: 14px 24px 14px 52px;
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: rgba(var(--bg-tertiary), 0.5);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#searchInput::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

#searchInput:hover {
    border-color: color-mix(in srgb, var(--border-primary) 50%, var(--accent-primary) 50%);
    background-color: rgba(var(--bg-tertiary), 0.8);
}

#searchInput:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: var(--bg-tertiary);
}

#searchInput:focus~.search-icon {
    color: var(--accent-primary);
    transform: translateY(-50%) scale(1.1);
}


/* Dark theme search enhancements */

.dark-theme #searchInput {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-theme #searchInput:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-theme #searchInput:focus {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(127, 143, 243, 0.2);
}


/* RTL support for Arabic */

[dir="rtl"] .search-icon {
    left: auto;
    right: 20px;
}

[dir="rtl"] #searchInput {
    padding: 14px 52px 14px 24px;
    text-align: right;
}


/* RTL support for Arabic */

[dir="rtl"] .search-icon {
    left: auto;
    right: 15px;
}

[dir="rtl"] #searchInput {
    padding: 12px 45px 12px 20px;
    text-align: right;
}


/* Clients Grid */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}


/* Client Card */

.client-card {
    background-color: var(--bg-tertiary);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.client-card:hover::before {
    transform: scaleX(1);
}

.client-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow-secondary);
    border-color: var(--accent-primary);
    /* Use subtle opacity overlay instead of changing background */
    background-color: color-mix(in srgb, var(--bg-tertiary) 85%, var(--accent-primary) 15%);
}

.dark-theme .client-card {
    background-color: rgba(255, 255, 255, 0.08);
}

.dark-theme .client-card:hover {
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 0 1000px rgba(127, 143, 243, 0.1);
}


/* Fix for clients section dark theme */

.dark-theme .clients-section {
    background-color: rgba(22, 33, 62, 0.95) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}


/* If using glass effect */

.dark-theme .glass {
    background-color: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark-theme .clients-section .search-bar {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.dark-theme .clients-section #searchInput {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #f0f6fc !important;
}

.dark-theme .clients-section .client-card {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-theme .clients-section .client-card:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
}

.dark-theme .clients-section h2,
.dark-theme .clients-section .section-title {
    color: #f0f6fc !important;
}

.dark-theme .clients-section .section-subtitle {
    color: #8b949e !important;
}

.dark-theme .clients-section .client-name {
    color: #f0f6fc !important;
}

.dark-theme .clients-section .stat-label,
.dark-theme .clients-section .client-meta,
.dark-theme .clients-section .meta-item {
    color: #fb87f1aa !important;
}


/* Important: Override any inline styles or other conflicting styles */

body.dark-theme .clients-section,
body.dark-theme .clients-section * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}


/* Client Name with Gradient Effect */

.client-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}


/* Dark theme gradient for client names */

.dark-theme .client-name {
    background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}


/* Alternative gradient colors for variety */

.client-card:nth-child(3n+1) .client-name {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.client-card:nth-child(3n+2) .client-name {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.client-card:nth-child(3n+3) .client-name {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Dark theme variations */

.dark-theme .client-card:nth-child(3n+1) .client-name {
    background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-theme .client-card:nth-child(3n+2) .client-name {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-theme .client-card:nth-child(3n+3) .client-name {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Gradient Text Utility Class */

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 700;
}

.dark-theme .gradient-text {
    background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.client-card.dark-card {
    background-color: rgba(22, 33, 62, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.client-card.dark-card:hover {
    background-color: rgba(22, 33, 62, 0.95) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(127, 143, 243, 0.2) !important;
    border-color: rgba(127, 143, 243, 0.3) !important;
}


/* Alternatively, use data attributes */

.client-card[data-theme="dark"] {
    background-color: rgba(22, 33, 62, 0.8) !important;
}

.client-card[data-theme="dark"]:hover {
    background-color: rgba(22, 33, 62, 0.95) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(127, 143, 243, 0.2) !important;
    border-color: rgba(127, 143, 243, 0.3) !important;
}


/* Hover effect for client names */

.client-card:hover .client-name {
    filter: brightness(1.2);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.client-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-primary);
    line-height: 1;
}

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


/* Client Status */


/* Client Status - No box styling, just text */

.client-status {
    display: inline-block;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.status-active {
    color: var(--success-text);
}

.status-inactive {
    color: var(--danger-text);
}


/* Client Meta Information */

.client-meta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-primary);
    font-size: 12px;
    color: var(--text-secondary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.meta-item i {
    font-size: 11px;
}

.meta-item.expired {
    color: var(--danger-text);
}


/* Visible count indicator */

.visible-count {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}


/* 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);
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid var(--border-primary);
    width: 80%;
    max-width: 800px;
    border-radius: 12px;
    max-height: 80vh;
    overflow-y: auto;
    color: var(--text-primary);
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-primary);
}


/* Logout button */

.logout-btn {
    background: var(--danger-text);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}


/* Subscription Card */

.subscription-card {
    position: relative;
    min-height: 120px;
}

.subscription-list {
    margin-top: 10px;
    font-size: 12px;
    max-height: 80px;
    overflow-y: auto;
}

.sub-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 4px;
    background: var(--border-primary);
}

.sub-item.expired {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.sub-item.warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.sub-item.active {
    background: var(--success-bg);
    color: var(--success-text);
}

.sub-name {
    font-weight: 500;
    flex: 1;
    margin-right: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sub-days {
    font-weight: bold;
    white-space: nowrap;
}

.sub-more {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 4px;
}

.no-subs {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 10px;
}


/* Status Styles */

.status-inactive {
    background-color: var(--danger-text) !important;
    color: white !important;
}

.client-card[data-is-active="false"] {
    opacity: 0.8;
    cursor: not-allowed;
}

.client-card[data-is-active="false"]:hover {
    transform: none;
    box-shadow: 0 2px 8px var(--danger-bg);
}


/* Subscription Notification */

.subscription-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.notification-content {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-tertiary);
    text-align: center;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification-content i {
    font-size: 48px;
    color: var(--warning-text);
    margin-bottom: 20px;
}

.notification-content h3 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 24px;
}

.notification-content p {
    margin: 10px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.notification-content button {
    margin-top: 20px;
    background: var(--danger-text);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.notification-content button:hover {
    background: #c0392b;
}

.notification-content strong {
    color: var(--danger-text);
}


/* Notification Container */

#notificationContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.notification {
    background: var(--bg-secondary);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px var(--shadow-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease-out;
    color: var(--text-primary);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-warning {
    border-left: 4px solid var(--warning-text);
}

.notification-warning i {
    color: var(--warning-text);
}


/* Notifications Container */

.notifications-container {
    display: flex;
    flex-direction: column;
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.notification-item {
    border: 1px solid var(--border-primary);
    border-radius: 5px;
    margin-bottom: 10px;
    transition: all 0.3s;
    background: var(--bg-tertiary);
}

.notification-item.unread {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent-primary);
}

.notification-item.read {
    opacity: 0.8;
}

.notification-header {
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-header:hover {
    background: var(--border-primary);
}

.notification-title {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.notification-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.expand-icon {
    transition: transform 0.3s;
    color: var(--text-secondary);
}

.notification-content {
    display: none;
    padding: 0 15px 15px 15px;
    border-top: 1px solid var(--border-primary);
}

.notification-content p {
    margin: 10px 0 0 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.notification-info i {
    color: #17a2b8;
}

.notification-warning i {
    color: var(--warning-text);
}

.notification-success i {
    color: var(--success-text);
}

.notification-error i {
    color: var(--danger-text);
}

.no-notifications {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-style: italic;
}

.no-clients {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-style: italic;
}


/* Responsive Design */

@media (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }
    header {
        padding: 15px;
        margin-bottom: 15px;
    }
    .summary-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    .charts-section {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    .clients-section {
        padding-top: 80px;
        padding-right: 20px;
        padding-left: 20px;
        margin-top: 20px;
    }
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .client-card {
        padding: 20px;
    }
    .stat-value {
        font-size: 24px;
    }
    #clients {
        scroll-margin-top: 70px;
    }
}

@media (max-width: 480px) {
    .clients-section {
        padding-top: 70px;
        padding-right: 15px;
        padding-left: 15px;
    }
    .client-name {
        font-size: 16px;
    }
    .summary-section {
        grid-template-columns: 1fr;
    }
    .summary-card {
        padding: 15px;
    }
    .card-icon {
        font-size: 36px;
    }
    .card-value {
        font-size: 28px;
    }
}