/* ===== VARIABLES ===== */
:root {
    /* Matrix Color Scheme */
    --primary: #8a2be2;
    --primary-dark: #7928ca;
    --primary-light: #9d50bb;
    --primary-glow: rgba(138, 43, 226, 0.6);
    --secondary: rgba(138, 43, 226, 0.8);
    --accent: rgba(230, 210, 255, 0.8);
    
    /* Light Theme */
    --body-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    
    /* Sidebar */
    --sidebar-bg: #10172a;
    --sidebar-text: #e9ecef;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-active: rgba(255, 255, 255, 0.15);
    
    /* Status Colors */
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;
    
    /* UI Elements */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Chart Colors */
    --chart-1: #8a2be2;
    --chart-2: #7928ca;
    --chart-3: #f72585;
    --chart-4: #4cc9f0;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

/* Dark Theme */
[data-theme="dark"] {
    --body-bg: #121212;
    --card-bg: #1e1e1e;
    --text-main: #e9ecef;
    --text-muted: #adb5bd;
    --border-color: #2d3748;
    
    --sidebar-bg: #0d121f;
    --sidebar-text: #e9ecef;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* ===== LAYOUT ===== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    color: var(--primary);
}

.logo span {
    color: var(--primary);
}

.sidebar-menu {
    padding: 1.5rem 0;
}

.menu-category {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
}

.menu-category:first-child {
    margin-top: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.menu-item:hover {
    background-color: var(--sidebar-hover);
    color: white;
}

.menu-item.active {
    background-color: var(--sidebar-active);
    color: white;
    font-weight: 500;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary);
}

.menu-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

.menu-item .badge {
    margin-left: auto;
    background-color: var(--danger);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.7rem;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 260px;
    transition: margin-left var(--transition-speed);
}

header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
}

.toggle-sidebar {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
    display: none;
}

.page-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

.notification {
    position: relative;
    cursor: pointer;
}

.notification i {
    font-size: 1.25rem;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-email {
    font-size: 0.75rem; 
    color: var(--text-muted);
}

/* ===== DASHBOARD CONTENT ===== */
.dashboard-content {
    padding: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.icon-subscribers {
    background-color: rgba(138, 43, 226, 0.1);
    color: var(--primary);
}

.icon-income {
    background-color: rgba(76, 201, 240, 0.1);
    color: var(--info);
}

.icon-keys {
    background-color: rgba(247, 37, 133, 0.1);
    color: var(--danger);
}

.icon-active {
    background-color: rgba(63, 55, 201, 0.1);
    color: var(--primary-dark);
}

.stat-details {
    flex: 1;
}

.stat-title {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-change {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
}

.change-positive {
    color: var(--success);
}

.change-negative {
    color: var(--danger);
}

.change-icon {
    margin-right: 0.25rem;
}

/* ===== CHART SECTIONS ===== */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.chart-actions {
    display: flex;
    gap: 0.5rem;
}

.chart-action {
    background-color: var(--border-color);
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s;
}

.chart-action:hover {
    background-color: var(--primary);
    color: white;
}

.chart-container {
    height: 300px;
    position: relative;
}

/* Placeholder for charts */
.chart-placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* ===== TABLES ===== */
.table-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.table-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: var(--primary-dark);
}

.action-btn-secondary {
    background-color: var(--border-color);
    color: var(--text-main);
}

.action-btn-secondary:hover {
    background-color: var(--text-muted);
    color: white;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.data-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.data-table td {
    font-size: 0.9rem;
}

.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.status-inactive {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--danger);
}

.status-pending {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning);
}

.table-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.table-actions-cell {
    display: flex;
    gap: 0.5rem;
}

.table-action {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    padding: 0.25rem;
}


/* Enhanced Login Page Styles with Fixed Alignment and Animations */
.login-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    background: 
        radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.2), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.2), transparent 40%),
        linear-gradient(45deg, #0a0a1a 0%, #1a0a2a 50%, #0a0a1a 100%);
    position: relative;
}

/* Digital Rain Effect */
.login-page::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(90deg, transparent 0%, transparent 10%, rgba(138, 43, 226, 0.05) 11%, transparent 11%),
        repeating-linear-gradient(0deg, transparent 0%, transparent 10%, rgba(138, 43, 226, 0.05) 11%, transparent 11%);
    background-size: 20px 20px;
    animation: digitalRain 20s linear infinite;
}

@keyframes digitalRain {
    0% { background-position: 0 0; }
    100% { background-position: 0 400px; }
}

/* Particle Container */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* Enhanced Particle Effect */
.particle {
    position: absolute;
    background: radial-gradient(circle, #8a2be2, transparent);
    border-radius: 50%;
    animation: floatDrift 15s infinite linear;
    box-shadow: 0 0 10px #8a2be2;
}

@keyframes floatDrift {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translate(100px, -200px) rotate(180deg) scale(1.2);
        opacity: 0.4;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translate(-50px, -400px) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.login-logo {
    
    margin-bottom: 2rem;
    text-align: center;
}

.login-logo h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 
        0 0 5px #8a2be2,
        0 0 10px #8a2be2,
        0 0 20px #8a2be2,
        0 0 40px #8a2be2;
    animation: flicker 2s infinite alternate;
    position: relative;
    display: inline-block;
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow:
            0 0 5px #8a2be2,
            0 0 10px #8a2be2,
            0 0 20px #8a2be2,
            0 0 40px #8a2be2;
    }
    20%, 24%, 55% {        
        text-shadow: none;
    }
}

.login-container {
    width: 100%;
    background: linear-gradient(135deg, rgba(26, 10, 42, 0.9), rgba(10, 10, 26, 0.9));
    border-radius: 20px;
    box-shadow: 
        0 0 10px rgba(138, 43, 226, 0.3),
        0 0 20px rgba(138, 43, 226, 0.2),
        0 0 40px rgba(138, 43, 226, 0.1);
    padding: 3rem;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.5);
    position: relative;
    backdrop-filter: blur(10px);
    animation: containerGlow 3s infinite alternate;
}

@keyframes containerGlow {
    0% {
        box-shadow: 
            0 0 10px rgba(138, 43, 226, 0.3),
            0 0 20px rgba(138, 43, 226, 0.2),
            0 0 40px rgba(255, 3, 3, 0.1);
    }
    100% {
        box-shadow: 
            0 0 20px rgba(138, 43, 226, 0.5),
            0 0 30px rgba(138, 43, 226, 0.3),
            0 0 50px rgba(138, 43, 226, 0.2);
    }
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(138, 43, 226, 0.05) 50%,
        transparent 55%
    );
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(0%) translateY(0%); }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.login-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8a2be2, transparent);
}

.login-header p {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
}

/* Fixed Form Group with Enhanced Animations */
.login-form .form-group {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.login-form .form-group.focused {
    transform: translateY(-2px);
}

.login-form .input-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(138, 43, 226, 0.3);
    background: rgba(138, 43, 226, 0.1);
    border-radius: 10px 0 0 10px;
    transition: all 0.3s ease;
    z-index: 1;
}

.login-form .form-group.focused .input-icon {
    background: rgba(138, 43, 226, 0.2);
    border-right-color: #8a2be2;
}

.login-form .input-icon i {
    color: #8a2be2;
    font-size: 1.1rem;
    text-shadow: 0 0 5px #8a2be2;
    transition: all 0.3s ease;
}

.login-form .form-group.focused .input-icon i {
    transform: scale(1.2);
    text-shadow: 0 0 10px #8a2be2;
}

.login-form input {
    
    width: 100%;
    padding: 16px 20px 16px 60px;
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 10px;
    background: rgba(10, 0, 20, 0.5);
    color: #772eff77;
    font-size: 30px;
    transition: all 0.3s ease;
    outline: none;
    height: 52px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-form input:focus {
    border-color: #8a2be2;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    background: rgba(20, 0, 40, 0.8);
    animation: inputGlow 2s infinite alternate;
}



@keyframes inputGlow {
    0% {
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
    }
}

.login-form input::placeholder {
    padding: 200px;
    color: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.login-form input:focus::placeholder {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(10px);
}

.login-form button {
     padding: 20px;
    width: 100%;
    padding: 16px;
    border: none;
    background: linear-gradient(45deg, #8a2be2, #bf40bf);
    color: white;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    margin-top: 1rem;
}

.login-form button::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: all 0.5s;
}

.login-form button:hover::before {
    left: 100%;
}

.login-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(138, 43, 226, 0.6);
}

/* Loading Effect */
.loading {
    display: none;
    text-align: center;
    margin: 2rem 0;
}

.loading .spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.loading .spinner-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #8a2be2;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 10px #8a2be2;
}

.loading .spinner-circle:nth-child(2) {
    border: 3px solid transparent;
    border-bottom-color: #bf40bf;
    animation: spin 2s linear infinite reverse;
    box-shadow: 0 0 10px #bf40bf;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: none;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
    backdrop-filter: blur(5px);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #ff4444;
    border-left: 4px solid #ff4444;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.2);
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.2);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 0, 20, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    position: relative;
    width: 120px;
    height: 120px;
}

.loading-spinner .spinner-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #8a2be2;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 20px #8a2be2;
}

.loading-spinner .spinner-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #8a2be2;
    font-size: 2rem;
    text-shadow: 0 0 10px #8a2be2;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.loading-text {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px #8a2be2;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 4px;
    margin-top: 1rem;
    overflow: hidden;
}

.loading-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #8a2be2, #bf40bf);
    border-radius: 4px;
    animation: loadingBar 2s ease-out forwards;
}

@keyframes loadingBar {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Footer Style */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    background: linear-gradient(to top, rgba(10, 0, 20, 0.8), transparent);
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .login-logo h1 {
        font-size: 2rem;
    }
}
/* Add these styles to your styles.css file */

/* Section Card Styles */
.section-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.section-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.section-content {
    padding: 1.5rem;
}

/* Form Grid Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--text-main);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
}

.btn i {
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--text-muted);
    color: white;
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Table Filter Styles */
.table-filters {
    padding: 1rem 1.5rem;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-group input,
.filter-group select {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--card-bg);
    color: var(--text-main);
    font-size: 0.875rem;
}

.filter-group input {
    flex: 1;
}

.filter-group select {
    min-width: 150px;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-20px); }
    to { transform: translateY(0); }
}

.modal-lg {
    max-width: 700px;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
}

/* Input with Button */
.input-with-button {
    display: flex;
    gap: 0.5rem;
}

.input-with-button input {
    flex: 1;
}

.input-with-button button {
    padding: 0.75rem;
}

/* Keys List */
.keys-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.keys-list {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    font-family: monospace;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* Helper classes */
.text-center {
    text-align: center;
}

.text-danger {
    color: var(--danger);
}

.text-muted {
    color: var(--text-muted);
}

/* Status badges with additional states */
.status-expired {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.status-pending {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}


/* Settings Page Styles */

/* Tabs */
.tabs-container {
    width: 100%;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.tabs-header {
    display: flex;
    overflow-x: auto;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    position: relative;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.tabs-content {
    padding: 1rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Settings Form */
.settings-form {
    max-width: 800px;
}

.settings-form .form-group {
    margin-bottom: 1.5rem;
}

.settings-form .helper-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.settings-form .warning-text {
    color: var(--warning);
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch label {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    background-color: var(--border-color);
    border-radius: 24px;
    transition: all 0.2s;
    cursor: pointer;
}

.toggle-switch label::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: all 0.2s;
}

.toggle-switch input[type="checkbox"]:checked + label {
    background-color: var(--primary);
}

.toggle-switch input[type="checkbox"]:checked + label::after {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 0.9rem;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Input Group */
.input-group {
    display: flex;
    align-items: center;
}

.input-group input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.input-group-text {
    background-color: var(--border-color);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-left: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    color: var(--text-muted);
}

/* Date Range Picker */
.date-range-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-range-picker input {
    width: 100%;
}

.date-range-picker span {
    color: var(--text-muted);
}


/* Log Page Specific Styles */

/* Log Details */
.log-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.log-detail-row {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.log-detail-label {
    width: 120px;
    font-weight: 600;
    color: var(--text-muted);
}

.log-detail-value {
    flex: 1;
}

.log-detail-section {
    margin-top: 1rem;
}

.log-detail-json {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
}

.pagination-btn {
    background-color: var(--border-color);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Subscriber Page Specific Styles */

/* Subscriber Details */
.subscriber-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.subscriber-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.subscriber-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
}

.subscriber-info {
    flex: 1;
}

.subscriber-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.subscriber-info p {
    margin: 0 0 0.75rem 0;
    color: var(--text-muted);
}

/* Detail Tabs */
.detail-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.detail-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.detail-tab:hover {
    color: var(--primary);
}

.detail-tab.active {
    color: var(--primary);
}

.detail-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.detail-content {
    padding: 1.5rem 0;
}

.detail-pane {
    display: none;
}

.detail-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Detail Rows */
.detail-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    width: 150px;
    font-weight: 600;
    color: var(--text-muted);
}

.detail-value {
    flex: 1;
}

/* Detail Table */
.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table th,
.detail-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.detail-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 30px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;
    width: 2px;
    background-color: var(--border-color);
}

.activity-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.activity-item::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary);
    z-index: 1;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.activity-text {
    margin: 0;
}

/* Service-specific styles to add to styles.css */

/* Service info in tables */
.service-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.service-name {
    font-weight: 500;
}

.service-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Wallet-specific styles */
.btn-copy {
    background-color: var(--border-color);
    color: var(--text-main);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.btn-copy:hover {
    background-color: var(--text-muted);
    color: white;
}

.license-actions {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.table-action.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Service Management Styles */
.service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-card-header {
    background-color: var(--card-bg);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.service-card-body {
    padding: 1.5rem;
}

.service-form-group {
    margin-bottom: 1.25rem;
}

.service-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.service-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--text-main);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.service-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.service-textarea {
    min-height: 100px;
    resize: vertical;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.service-btn-primary {
    background-color: var(--primary);
    color: white;
}

.service-btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--primary-glow);
}

.service-btn-secondary {
    background-color: var(--border-color);
    color: var(--text-main);
}

.service-btn-secondary:hover {
    background-color: var(--text-muted);
    color: white;
    transform: translateY(-2px);
}

.service-table-container {
    overflow-x: auto;
}

.service-table {
    width: 100%;
    border-collapse: collapse;
}

.service-table th,
.service-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.service-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.service-table tbody tr:hover {
    background-color: var(--accent);
}

.service-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.service-badge-active {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.service-badge-inactive {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--danger);
}

.service-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}

.service-empty-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.service-loading {
    text-align: center;
    padding: 40px 0;
}

.service-spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.service-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.service-toast {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    margin-bottom: 10px;
    padding: 15px;
    max-width: 300px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.service-toast-icon {
    margin-right: 15px;
    font-size: 1.5rem;
}

.service-toast-content {
    flex-grow: 1;
}

.service-toast-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-main);
}

.service-toast-message {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.service-toast-success { border-left: 4px solid var(--success); }
.service-toast-error { border-left: 4px solid var(--danger); }
.service-toast-warning { border-left: 4px solid var(--warning); }
.service-toast-info { border-left: 4px solid var(--info); }

.service-highlight {
    animation: highlight 2s ease-in-out;
}

@keyframes highlight {
    0%, 100% { background-color: transparent; }
    50% { background-color: var(--primary-glow); }
}

.service-name {
    font-weight: 500;
    color: var(--text-main);
}

.service-id {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.service-timestamp {
    display: flex;
    flex-direction: column;
}

.service-date {
    font-size: 0.9rem;
    color: var(--text-main);
}

.service-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.services-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}


