:root {
    /* Dark theme colors inspired by Viously */
    --drp-bg-dark: #0a0e1a;
    --drp-bg-darker: #060913;
    --drp-card-bg: #141824;
    --drp-card-bg-hover: #1a1f2e;
    --drp-border: #1e2433;
    --drp-border-light: #2a3142;
    
    /* Text colors */
    --drp-text: #e2e8f0;
    --drp-text-light: #94a3b8;
    --drp-text-lighter: #64748b;
    --drp-text-dark: #1e293b;
    
    /* Accent colors */
    --drp-purple-main: #8b5cf6;
    --drp-purple-dark: #7c3aed;
    --drp-purple-light: #a78bfa;
    
    --drp-green-main: #10b981;
    --drp-green-dark: #059669;
    --drp-green-light: #34d399;
    
    --drp-red-main: #ef4444;
    --drp-red-dark: #dc2626;
    --drp-red-light: #f87171;
    
    --drp-orange-main: #f97316;
    --drp-orange-dark: #ea580c;
    --drp-orange-light: #fb923c;
    
    --drp-cyan-main: #06b6d4;
    --drp-cyan-dark: #0891b2;
    --drp-cyan-light: #22d3ee;
    
    --drp-blue-main: #3b82f6;
    --drp-blue-dark: #2563eb;
    
    /* Primary mappings */
    --drp-primary: var(--drp-purple-main);
    --drp-primary-dark: var(--drp-purple-dark);
    --drp-primary-light: var(--drp-purple-light);
    --drp-success: var(--drp-green-main);
    --drp-danger: var(--drp-red-main);
    --drp-warning: var(--drp-orange-main);
    --drp-info: var(--drp-cyan-main);
    
    /* Sidebar colors */
    --drp-sidebar-bg: #0f1419;
    --drp-sidebar-text: #94a3b8;
    --drp-sidebar-hover: #1a1f2e;
    --drp-sidebar-active: #8b5cf6;
    
    /* Shadows */
    --drp-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --drp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --drp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    
    /* Gradients */
    --drp-gradient-primary: linear-gradient(135deg, var(--drp-purple-main) 0%, var(--drp-purple-dark) 100%);
    --drp-gradient-success: linear-gradient(135deg, var(--drp-green-main) 0%, var(--drp-green-dark) 100%);
    --drp-gradient-danger: linear-gradient(135deg, var(--drp-red-main) 0%, var(--drp-red-dark) 100%);
    --drp-gradient-warning: linear-gradient(135deg, var(--drp-orange-main) 0%, var(--drp-orange-dark) 100%);
    --drp-gradient-bg: linear-gradient(135deg, #0a0e1a 0%, #060913 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.drp-message {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    color: #0c4a6e;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 16px;
    text-align: center;
}

.drp-message a {
    color: var(--drp-primary);
    font-weight: 600;
    text-decoration: none;
}

.drp-message a:hover {
    text-decoration: underline;
}

.drp-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--drp-primary) 0%, var(--drp-secondary) 100%);
    padding: 20px;
}

.drp-auth-box {
    background: white;
    border-radius: 16px;
    box-shadow: var(--drp-shadow-xl);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    animation: slideUp 0.5s ease;
    border: 1px solid var(--drp-border);
    position: relative;
    overflow: hidden;
}

.drp-auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--drp-primary), var(--drp-secondary));
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.drp-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.drp-auth-header h2 {
    color: var(--drp-text);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.drp-auth-header p {
    color: var(--drp-text-light);
    font-size: 14px;
    margin: 0;
}

.drp-form-group {
    margin-bottom: 20px;
}

.drp-form-group label {
    display: block;
    color: var(--drp-text);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.drp-form-group input[type="text"],
.drp-form-group input[type="email"],
.drp-form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--drp-border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    background: var(--drp-bg);
}

.drp-form-group input[type="text"]:hover,
.drp-form-group input[type="email"]:hover,
.drp-form-group input[type="password"]:hover {
    border-color: var(--drp-primary-light);
    background: #f0f9ff;
}

.drp-form-group input:focus {
    border-color: var(--drp-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.drp-form-group input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

.drp-checkbox label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.drp-checkbox input {
    margin-right: 8px;
}

.drp-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--drp-shadow);
}

.drp-btn-primary {
    background: var(--drp-gradient-primary);
    color: white;
    box-shadow: var(--drp-shadow);
    position: relative;
    overflow: hidden;
}

.drp-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.drp-btn-primary:hover::before {
    left: 100%;
}

.drp-btn-primary:hover {
    background: linear-gradient(135deg, var(--drp-purple-dark) 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: var(--drp-shadow-lg);
}

.drp-btn-secondary {
    background: var(--drp-gradient-secondary);
    color: white;
    position: relative;
    overflow: hidden;
}

.drp-btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.drp-btn-secondary:hover::before {
    left: 100%;
}

.drp-btn-secondary:hover {
    background: linear-gradient(135deg, var(--drp-teal-dark) 0%, #134e4a 100%);
    transform: translateY(-2px);
    box-shadow: var(--drp-shadow-lg);
}

.drp-form-message {
    margin: 15px 0;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.drp-form-message.success {
    background: linear-gradient(135deg, #dcfce7 0%, #a7f3d0 100%);
    color: #16a34a;
    display: block;
    border-left: 4px solid var(--drp-success);
}

.drp-form-message.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fbcfe8 100%);
    color: #dc2626;
    display: block;
    border-left: 4px solid var(--drp-danger);
}

.drp-auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--drp-border);
}

.drp-auth-footer p {
    color: var(--drp-text-light);
    font-size: 14px;
    margin: 0;
}

.drp-auth-footer a {
    color: var(--drp-primary);
    text-decoration: none;
    font-weight: 600;
}

.drp-dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--drp-bg-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.drp-sidebar {
    width: 260px;
    background: var(--drp-sidebar-bg);
    color: var(--drp-sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    border-right: 1px solid var(--drp-border);
}

.drp-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--drp-border);
    position: relative;
}

.drp-sidebar-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s;
    color: var(--drp-text-light);
}

.drp-sidebar-toggle:hover {
    background: var(--drp-sidebar-hover);
    color: var(--drp-text);
}

.drp-sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--drp-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.drp-sidebar-header h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--drp-purple-main);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--drp-purple-main);
}

.drp-sidebar-header p {
    font-size: 13px;
    color: var(--drp-text-lighter);
    margin: 0;
}

.drp-sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.drp-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--drp-text-light);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 6px;
    margin: 2px 12px;
    font-size: 14px;
    font-weight: 500;
}

.drp-nav-item:hover {
    background: var(--drp-sidebar-hover);
    color: var(--drp-text);
}

.drp-nav-item.active {
    background: var(--drp-sidebar-hover);
    color: var(--drp-purple-main);
    position: relative;
}

.drp-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--drp-purple-main);
    border-radius: 0 3px 3px 0;
}

.drp-sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.drp-logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: transparent;
    color: var(--drp-text-light);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin: 0 12px;
    font-size: 14px;
    font-weight: 500;
}

.drp-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--drp-red-main);
}

.drp-sidebar.collapsed {
    width: 70px;
}

.drp-sidebar.collapsed .drp-sidebar-header h2,
.drp-sidebar.collapsed .drp-sidebar-header p,
.drp-sidebar.collapsed .drp-nav-item span,
.drp-sidebar.collapsed .drp-logout-btn span {
    display: none;
}

.drp-sidebar.collapsed .drp-nav-item {
    justify-content: center;
}

.drp-sidebar.collapsed .drp-logout-btn {
    justify-content: center;
}

.drp-main-content {
    margin-left: 260px;
    flex: 1;
    padding: 32px;
    width: calc(100% - 260px);
    transition: all 0.3s ease;
    background: var(--drp-bg-dark);
}

.drp-sidebar.collapsed~.drp-main-content {
    margin-left: 70px;
    width: calc(100% - 70px);
}

.drp-page {
    display: none;
}

.drp-page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.drp-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.drp-date-filter-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.drp-date-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: var(--drp-shadow);
}

.drp-date-filter label {
    font-weight: 500;
    color: var(--drp-text);
    margin: 0;
}

.drp-date-input {
    padding: 8px 12px;
    border: 2px solid var(--drp-border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.drp-date-input:focus {
    border-color: var(--drp-primary);
}

#drp-apply-date-filter {
    padding: 8px 16px;
    font-size: 14px;
}

.dp-page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--drp-text);
}

/* Enhanced styling for refresh and filter buttons */
.drp-btn-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.drp-btn-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    outline: none;
    background: white;
    color: var(--drp-text);
    box-shadow: var(--drp-shadow);
}

.drp-btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: var(--drp-shadow-lg);
}

.drp-btn-icon.primary {
    background: var(--drp-primary);
    color: white;
}

.drp-btn-icon.primary:hover {
    background: var(--drp-primary-dark);
}

.drp-btn-icon svg {
    width: 16px;
    height: 16px;
}

.drp-date-filter-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.drp-date-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: var(--drp-shadow);
}

.drp-date-control-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.drp-date-control-group label {
    font-weight: 500;
    color: var(--drp-text);
    font-size: 14px;
    margin: 0;
}

.drp-date-input {
    padding: 8px 12px;
    border: 2px solid var(--drp-border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    width: 140px;
}

.drp-date-input:focus {
    border-color: var(--drp-primary);
}

.drp-apply-btn {
    padding: 8px 16px;
    font-size: 14px;
    background: var(--drp-gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--drp-shadow);
    position: relative;
    overflow: hidden;
}

.drp-apply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.drp-apply-btn:hover::before {
    left: 100%;
}

.drp-apply-btn:hover {
    background: linear-gradient(135deg, var(--drp-purple-dark) 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: var(--drp-shadow-lg);
}

.drp-refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--drp-gradient-secondary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--drp-shadow);
    position: relative;
    overflow: hidden;
}

.drp-refresh-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.drp-refresh-btn:hover::before {
    left: 100%;
}

.drp-refresh-btn:hover {
    background: linear-gradient(135deg, var(--drp-teal-dark) 0%, #134e4a 100%);
    transform: translateY(-2px);
    box-shadow: var(--drp-shadow-lg);
}

.drp-refresh-btn svg {
    width: 16px;
    height: 16px;
}

.drp-export-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--drp-shadow);
    position: relative;
    overflow: hidden;
    margin-right: 10px;
}

.drp-export-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.drp-export-btn svg {
    width: 16px;
    height: 16px;
}

.drp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
    padding: 0 4px;
}

.drp-stat-card:nth-child(1) {
    --stat-card-accent: var(--drp-purple-main);
}

.drp-stat-card:nth-child(2) {
    --stat-card-accent: var(--drp-teal-main);
}

.drp-stat-card:nth-child(3) {
    --stat-card-accent: var(--drp-orange-main);
}

.drp-stat-card:nth-child(4) {
    --stat-card-accent: var(--drp-pink-main);
}

.drp-stat-card:nth-child(5) {
    --stat-card-accent: var(--drp-blue-main);
}

.drp-stat-card:nth-child(6) {
    --stat-card-accent: var(--drp-green-main);
}

.drp-stat-card:nth-child(7) {
    --stat-card-accent: var(--drp-purple-light);
}

.drp-stat-card:nth-child(8) {
    --stat-card-accent: var(--drp-teal-light);
}

.drp-stat-card:nth-child(9) {
    --stat-card-accent: var(--drp-orange-light);
}

.drp-stat-card:nth-child(10) {
    --stat-card-accent: var(--drp-pink-light);
}

.drp-stat-card:nth-child(11) {
    --stat-card-accent: var(--drp-purple-dark);
}

.drp-stat-card:nth-child(12) {
    --stat-card-accent: var(--drp-teal-dark);
}

.drp-stat-card {
    background: var(--drp-card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--drp-shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--drp-border);
    position: relative;
    overflow: hidden;
}

.drp-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--stat-card-accent, var(--drp-purple-main));
}

.drp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--drp-shadow-lg);
    border-color: var(--drp-border-light);
    background: var(--drp-card-bg-hover);
}

.drp-stat-card.drp-stat-updated {
    animation: drp-stat-pulse 1.2s ease-in-out;
}

.drp-stat-card.drp-stat-updated .drp-stat-value {
    animation: drp-value-highlight 1.2s ease-in-out;
}

@keyframes drp-stat-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(15, 118, 110, 0.08), 0 2px 8px rgba(15, 118, 110, 0.04);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 12px 40px rgba(15, 118, 110, 0.15), 0 4px 12px rgba(15, 118, 110, 0.08);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(15, 118, 110, 0.08), 0 2px 8px rgba(15, 118, 110, 0.04);
    }
}

@keyframes drp-value-highlight {
    0% {
        color: var(--drp-text);
    }

    50% {
        color: var(--drp-teal-main);
    }

    100% {
        color: var(--drp-text);
    }
}

.drp-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    align-self: flex-start;
}

.drp-stat-icon.revenue {
    background: rgba(16, 185, 129, 0.15);
    color: var(--drp-green-main);
}

.drp-stat-icon.clicks {
    background: rgba(139, 92, 246, 0.15);
    color: var(--drp-purple-main);
}

.drp-stat-icon.impressions {
    background: rgba(249, 115, 22, 0.15);
    color: var(--drp-orange-main);
}

.drp-stat-icon.ctr {
    background: rgba(6, 182, 212, 0.15);
    color: var(--drp-cyan-main);
}

.drp-stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drp-stat-label {
    font-size: 13px;
    color: var(--drp-text-lighter);
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drp-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--drp-text);
    margin: 0;
    line-height: 1.2;
}

.drp-stat-change {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
}

.drp-stat-change.positive {
    background: rgba(16, 185, 129, 0.15);
    color: var(--drp-green-main);
}

.drp-stat-change.positive::before {
    content: '↗';
    font-size: 11px;
}

.drp-stat-change.negative {
    background: rgba(239, 68, 68, 0.15);
    color: var(--drp-red-main);
}

.drp-stat-change.negative::before {
    content: '↘';
    font-size: 11px;
}

.drp-charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.drp-charts-container:last-child {
    grid-template-columns: 1fr 1fr;
}

.drp-charts-container.drp-charts-full-width {
    grid-template-columns: 1fr;
}

.drp-chart-card {
    background: var(--drp-card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--drp-shadow);
    border: 1px solid var(--drp-border);
    transition: all 0.3s ease;
}

.drp-chart-card:hover {
    box-shadow: var(--drp-shadow-lg);
    border-color: var(--drp-border-light);
}

.drp-chart-large {
    grid-column: 1 / -1 !important;
}

.drp-chart-small {
    grid-column: span 1;
}

.drp-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.drp-chart-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--drp-text-light);
    margin: 0;
}

.drp-chart-filter {
    padding: 8px 16px;
    border: 1px solid var(--drp-border);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    background: var(--drp-bg-darker);
    color: var(--drp-text);
    font-weight: 500;
    transition: all 0.2s ease;
}

.drp-chart-filter:hover {
    border-color: var(--drp-border-light);
    background: var(--drp-card-bg);
}

.drp-chart-filter:focus {
    border-color: var(--drp-purple-main);
}

.drp-chart-body {
    position: relative;
    min-height: 300px;
    background: #000000;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.drp-coming-soon {
    text-align: center;
    padding: 80px 20px;
    color: var(--drp-text-light);
}

.drp-coming-soon svg {
    margin-bottom: 24px;
    color: var(--drp-primary);
}

.drp-coming-soon h2 {
    font-size: 28px;
    color: var(--drp-text);
    margin-bottom: 12px;
}

.drp-coming-soon p {
    font-size: 16px;
}

.drp-profile-container {
    max-width: 800px;
}

.drp-profile-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--drp-shadow);
}

.drp-profile-info {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--drp-border);
}

.drp-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.drp-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drp-profile-details h3 {
    font-size: 24px;
    color: var(--drp-text);
    margin-bottom: 4px;
}

.drp-profile-details p {
    color: var(--drp-text-light);
    margin-bottom: 8px;
}

.drp-profile-role {
    display: inline-block;
    padding: 4px 12px;
    background: var(--drp-primary);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.drp-profile-form .drp-form-group {
    margin-bottom: 20px;
}

.drp-dashboard-body header,
.drp-dashboard-body #header,
.drp-dashboard-body .header,
.drp-dashboard-body footer,
.drp-dashboard-body #footer,
.drp-dashboard-body .footer {
    display: none !important;
}

.drp-dashboard-body .drp-dashboard-wrapper {
    margin-top: 0 !important;
    min-height: 100vh;
}

.drp-dashboard-body {
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 1024px) {
    .drp-charts-container {
        grid-template-columns: 1fr;
    }
}

/* Loading and notification styles */
.drp-loading {
    position: relative;
    opacity: 0.6;
}

.drp-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid var(--drp-border);
    border-top: 3px solid var(--drp-primary);
    border-radius: 50%;
    animation: drp-spin 1s linear infinite;
    z-index: 10;
}

@keyframes drp-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.drp-spinning {
    animation: drp-spin 1s linear infinite;
}

.drp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--drp-shadow-lg);
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}

.drp-notification-show {
    transform: translateX(0);
    opacity: 1;
}

.drp-notification-success {
    background: var(--drp-gradient-secondary);
}

.drp-notification-error {
    background: var(--drp-gradient-warm);
}

.drp-notification-warning {
    background: linear-gradient(135deg, var(--drp-orange-main) 0%, var(--drp-orange-dark) 100%);
}

.drp-notification-info {
    background: var(--drp-gradient-primary);
}

/* Error states */
.drp-stat-card.drp-error {
    border-color: var(--drp-orange-main);
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.drp-chart-body.drp-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: var(--drp-orange-main);
}

/* Empty and error chart states */
.drp-empty-chart,
.drp-error-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 250px;
    text-align: center;
    padding: 40px 20px;
}

.drp-empty-icon,
.drp-error-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.drp-empty-chart h3,
.drp-error-chart h3 {
    color: var(--drp-text);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.drp-empty-chart p,
.drp-error-chart p {
    color: var(--drp-text-light);
    font-size: 14px;
    margin: 0;
    max-width: 300px;
}

.drp-error-chart {
    color: var(--drp-orange-main);
}

.drp-error-chart h3 {
    color: var(--drp-orange-main);
}

/* Chart responsiveness improvements */
@media (max-width: 768px) {
    .drp-chart-card {
        margin-bottom: 20px;
    }

    .drp-charts-container {
        grid-template-columns: 1fr !important;
    }

    .drp-chart-large,
    .drp-chart-small {
        grid-column: 1 !important;
    }

    .drp-empty-chart,
    .drp-error-chart {
        min-height: 200px;
        padding: 30px 15px;
    }

    .drp-empty-icon,
    .drp-error-icon {
        font-size: 36px;
    }

    .drp-empty-chart h3,
    .drp-error-chart h3 {
        font-size: 18px;
    }
}

/* Mobile optimizations */
@media (max-width: 1024px) {
    .drp-charts-container {
        grid-template-columns: 1fr;
    }

    .drp-chart-large,
    .drp-chart-small {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .drp-sidebar {
        width: 70px;
        transform: translateX(-100%);
        position: fixed;
        z-index: 1000;
    }

    .drp-sidebar.drp-mobile-open {
        transform: translateX(0);
        width: 280px;
        box-shadow: var(--drp-shadow-xl);
    }

    .drp-sidebar-header h2,
    .drp-sidebar-header p,
    .drp-nav-item span,
    .drp-logout-btn span {
        display: none;
    }

    .drp-sidebar.drp-mobile-open .drp-sidebar-header h2,
    .drp-sidebar.drp-mobile-open .drp-sidebar-header p,
    .drp-sidebar.drp-mobile-open .drp-nav-item span,
    .drp-sidebar.drp-mobile-open .drp-logout-btn span {
        display: block;
    }

    .drp-nav-item {
        justify-content: center;
    }

    .drp-sidebar.drp-mobile-open .drp-nav-item {
        justify-content: flex-start;
    }

    .drp-main-content {
        margin-left: 0;
        width: 100%;
        padding: 16px;
    }

    .drp-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        position: relative;
    }

    .drp-page-header h1 {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .drp-mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: var(--drp-gradient-primary);
        color: white;
        border-radius: 8px;
        cursor: pointer;
        font-size: 18px;
    }

    .drp-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .drp-stat-card {
        padding: 20px;
    }

    .drp-stat-icon {
        width: 48px;
        height: 48px;
    }

    .drp-stat-value {
        font-size: 24px;
    }

    .drp-date-filter-container {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .drp-date-controls {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .drp-date-control-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .drp-date-input {
        width: 100%;
    }

    .drp-apply-btn,
    .drp-refresh-btn {
        width: 100%;
        justify-content: center;
    }

    .drp-charts-container {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .drp-chart-card {
        padding: 16px;
    }

    .drp-chart-body {
        min-height: 250px;
        padding: 12px;
    }

    .drp-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }

    .drp-notification-show {
        transform: translateY(0);
    }

    /* Mobile overlay for sidebar */
    .drp-mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .drp-mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Prevent body scroll when mobile menu is open */
    body.drp-mobile-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .drp-main-content {
        padding: 12px;
    }

    .drp-page-header h1 {
        font-size: 24px;
    }

    .drp-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
    }

    .drp-stat-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
        border-radius: 16px;
    }

    .drp-stat-icon {
        width: 48px;
        height: 48px;
        align-self: center;
        border-radius: 12px;
    }

    .drp-stat-content {
        align-items: center;
        text-align: center;
    }

    .drp-stat-value {
        font-size: 24px;
    }

    .drp-stat-label {
        font-size: 12px;
    }

    .drp-chart-body {
        min-height: 200px;
        padding: 8px;
    }
}

/* 
Advanced Chart Enhancements */
.drp-chart-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 5px 0 0 0;
    font-weight: normal;
}

.drp-chart-card .drp-chart-header h3 {
    margin-bottom: 5px;
}

/* Gauge Chart Containers */
#ctr-gauge,
#revenue-growth-gauge {
    height: 200px !important;
}

/* Scatter Plot Styling */
#revenue-impressions-scatter {
    height: 300px !important;
}

/* Performance Heatmap */
#performance-heatmap {
    height: 250px !important;
}

/* Funnel Chart */
#performance-funnel {
    height: 300px !important;
}

/* Enhanced Chart Card Hover Effects */
.drp-chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Chart Loading Animation */
.drp-chart-body.drp-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    animation: drp-spin 1s linear infinite;
    z-index: 10;
}

@keyframes drp-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Professional Chart Grid Layout */
.drp-charts-container.drp-advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Chart Performance Indicators */
.drp-chart-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.drp-chart-indicator.warning {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.drp-chart-indicator.error {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Enhanced Responsive Design for Advanced Charts */
@media (max-width: 768px) {
    .drp-charts-container {
        grid-template-columns: 1fr;
    }

    .drp-chart-card {
        margin-bottom: 20px;
    }

    #ctr-gauge,
    #revenue-growth-gauge {
        height: 180px !important;
    }

    #revenue-impressions-scatter,
    #performance-heatmap,
    #performance-funnel {
        height: 250px !important;
    }
}

/* Chart Data Quality Badges */
.drp-chart-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drp-chart-badge.live {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.drp-chart-badge.cached {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Fil
ter Tabs Styling */
.drp-filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.drp-filter-tab {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.drp-filter-tab:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
}

.drp-filter-tab.active {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Page Header Layout Update */
.drp-page-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.drp-page-header h1 {
    display: none;
    /* Hide the h1 since we're using filter tabs instead */
}

/* Responsive Filter Tabs */
@media (max-width: 768px) {
    .drp-filter-tabs {
        flex-direction: column;
        gap: 8px;
    }

    .drp-filter-tab {
        text-align: center;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Negative stat change styling */
.drp-stat-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.drp-stat-change.negative::before {
    content: '↓';
    margin-right: 4px;
}

/* I
ndividual Chart Styling */
#impressions-chart,
#cpm-chart,
#fill-rate-chart,
#viewability-chart {
    height: 300px !important;
}

/* Chart Grid Layout Enhancement */
.drp-charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.drp-charts-container .drp-chart-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
}

.drp-charts-container .drp-chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Chart Header Styling */
.drp-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.drp-chart-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

/* Chart Body */
.drp-chart-body {
    position: relative;
    height: 300px;
}

/* Responsive Design for Charts */
@media (max-width: 1200px) {
    .drp-charts-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .drp-charts-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .drp-chart-body {
        height: 250px;
    }

    #impressions-chart,
    #cpm-chart,
    #fill-rate-chart,
    #viewability-chart {
        height: 250px !important;
    }
}

/* Chart Loading State */
.drp-chart-body.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 8px;
}

.drp-chart-body.loading::before {
    content: 'Loading chart...';
    color: #6b7280;
    font-size: 14px;
}

/* Chart Error State */
.drp-chart-body.error {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
}

/* Chart Animation */
.drp-chart-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Re
venue by Country Chart Styling */
#countries-chart {
    height: 400px !important;
}

.drp-charts-full-width .drp-chart-body {
    height: 400px;
}

/* Empty chart state for countries */
.drp-empty-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7280;
    text-align: center;
}

.drp-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.drp-empty-chart h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.drp-empty-chart p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* Rep
orts Page Styles */
.drp-reports-table {
    overflow-x: auto;
}

.drp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.drp-table thead {
    background: var(--drp-bg-darker);
    border-bottom: 2px solid var(--drp-border);
}

.drp-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--drp-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drp-table td {
    padding: 16px;
    border-bottom: 1px solid var(--drp-border);
    color: var(--drp-text);
    font-size: 14px;
}

.drp-table tbody tr {
    transition: background 0.2s ease;
}

.drp-table tbody tr:hover {
    background: var(--drp-card-bg-hover);
}

.drp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.drp-badge-purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--drp-purple-main);
}

.drp-badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--drp-green-main);
}

.drp-badge-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: var(--drp-cyan-main);
}

.drp-badge-orange {
    background: rgba(249, 115, 22, 0.15);
    color: var(--drp-orange-main);
}

.drp-badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--drp-green-main);
}

.drp-badge-warning {
    background: rgba(249, 115, 22, 0.15);
    color: var(--drp-orange-main);
}

.drp-btn-icon-small {
    background: transparent;
    border: 1px solid var(--drp-border);
    color: var(--drp-text-light);
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 6px;
}

.drp-btn-icon-small:hover {
    background: var(--drp-card-bg-hover);
    border-color: var(--drp-border-light);
    color: var(--drp-text);
}

.drp-btn-icon-small:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Analytics Page Styles */
.drp-top-pages-list {
    padding: 16px 0;
}

.drp-top-page-item {
    margin-bottom: 20px;
}

.drp-page-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.drp-page-rank {
    width: 28px;
    height: 28px;
    background: var(--drp-card-bg-hover);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--drp-text);
    font-size: 14px;
}

.drp-page-title {
    font-weight: 600;
    color: var(--drp-text);
    font-size: 14px;
}

.drp-page-views {
    font-size: 12px;
    color: var(--drp-text-lighter);
    margin-top: 2px;
}

.drp-page-bar {
    height: 8px;
    background: var(--drp-bg-darker);
    border-radius: 4px;
    overflow: hidden;
}

.drp-page-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.drp-device-stats {
    padding: 16px 0;
}

.drp-device-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--drp-bg-darker);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.drp-device-item:hover {
    background: var(--drp-card-bg-hover);
}

.drp-device-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drp-device-info {
    flex: 1;
}

.drp-device-name {
    font-weight: 600;
    color: var(--drp-text);
    font-size: 15px;
    margin-bottom: 4px;
}

.drp-device-percentage {
    font-size: 24px;
    font-weight: 700;
    color: var(--drp-text);
}

.drp-device-count {
    color: var(--drp-text-light);
    font-size: 13px;
}

/* Profile Page Styles */
.drp-profile-container {
    max-width: 900px;
}

.drp-profile-header-content {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.drp-profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.drp-profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--drp-border);
}

.drp-profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drp-profile-header-info {
    flex: 1;
}

.drp-profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.drp-profile-form {
    max-width: 100%;
}

.drp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.drp-form-group {
    margin-bottom: 20px;
}

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

.drp-form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--drp-bg-darker);
    border: 1px solid var(--drp-border);
    border-radius: 8px;
    color: var(--drp-text);
    font-size: 14px;
    transition: all 0.2s ease;
}

.drp-form-input:focus {
    outline: none;
    border-color: var(--drp-purple-main);
    background: var(--drp-card-bg);
}

.drp-form-input::placeholder {
    color: var(--drp-text-lighter);
}

textarea.drp-form-input {
    resize: vertical;
    font-family: inherit;
}

.drp-form-divider {
    height: 1px;
    background: var(--drp-border);
    margin: 32px 0;
}

.drp-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.drp-btn-primary,
.drp-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.drp-btn-primary {
    background: var(--drp-gradient-primary);
    color: white;
}

.drp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--drp-shadow-lg);
}

.drp-btn-secondary {
    background: transparent;
    border: 1px solid var(--drp-border);
    color: var(--drp-text);
}

.drp-btn-secondary:hover {
    background: var(--drp-card-bg-hover);
    border-color: var(--drp-border-light);
}

.drp-settings-list {
    padding: 8px 0;
}

.drp-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--drp-border);
}

.drp-setting-item:last-child {
    border-bottom: none;
}

.drp-setting-info {
    flex: 1;
}

.drp-setting-title {
    font-weight: 600;
    color: var(--drp-text);
    font-size: 15px;
    margin-bottom: 4px;
}

.drp-setting-description {
    font-size: 13px;
    color: var(--drp-text-light);
}

/* Toggle Switch */
.drp-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.drp-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.drp-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--drp-bg-darker);
    border: 1px solid var(--drp-border);
    transition: 0.3s;
    border-radius: 24px;
}

.drp-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--drp-text-light);
    transition: 0.3s;
    border-radius: 50%;
}

.drp-toggle input:checked + .drp-toggle-slider {
    background: var(--drp-purple-main);
    border-color: var(--drp-purple-main);
}

.drp-toggle input:checked + .drp-toggle-slider:before {
    transform: translateX(24px);
    background: white;
}

/* Sparkline Grid - 8 boxes with mini charts */
.drp-sparkline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.drp-sparkline-card {
    background: var(--drp-card-bg);
    border: 1px solid var(--drp-border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.drp-sparkline-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--drp-shadow-lg);
    border-color: var(--drp-border-light);
    background: var(--drp-card-bg-hover);
}

.drp-sparkline-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.drp-sparkline-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.drp-sparkline-info {
    flex: 1;
    min-width: 0;
}

.drp-sparkline-label {
    display: block;
    font-size: 12px;
    color: var(--drp-text-lighter);
    margin-bottom: 6px;
    font-weight: 500;
}

.drp-sparkline-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--drp-text);
    margin: 0;
    line-height: 1.2;
}

.drp-sparkline-chart {
    height: 60px;
    margin: 12px 0;
    position: relative;
}

.drp-sparkline-chart canvas {
    width: 100% !important;
    height: 60px !important;
}

.drp-sparkline-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--drp-border);
}

.drp-sparkline-trend {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.drp-sparkline-trend.positive {
    background: rgba(16, 185, 129, 0.15);
    color: var(--drp-green-main);
}

.drp-sparkline-trend.positive::before {
    content: '↗ ';
}

.drp-sparkline-trend.negative {
    background: rgba(239, 68, 68, 0.15);
    color: var(--drp-red-main);
}

.drp-sparkline-trend.negative::before {
    content: '↘ ';
}

.drp-sparkline-period {
    font-size: 11px;
    color: var(--drp-text-lighter);
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .drp-form-row {
        grid-template-columns: 1fr;
    }
    
    .drp-profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .drp-profile-badges {
        justify-content: center;
    }
    
    .drp-table {
        font-size: 13px;
    }
    
    .drp-table th,
    .drp-table td {
        padding: 10px 8px;
    }
    
    .drp-device-item {
        flex-wrap: wrap;
    }
    
    .drp-form-actions {
        flex-direction: column;
    }
    
    .drp-form-actions button {
        width: 100%;
    }
    
    .drp-sparkline-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .drp-sparkline-card {
        padding: 16px;
    }
    
    .drp-sparkline-value {
        font-size: 20px;
    }
}
