.admin-badge {
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 1rem;
    box-shadow: 0 2px 8px rgba(248, 81, 73, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Admin Sidebar Component */
.admin-sidebar {
    width: var(--menu-width);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-title {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.sidebar-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.sidebar-item.active {
    background: linear-gradient(90deg, rgba(88, 166, 255, 0.1), transparent);
    color: var(--accent);
    border-right: 3px solid var(--accent);
}

.sidebar-item i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.sidebar-item .badge {
    margin-left: auto;
    background-color: var(--red);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

/* Page Header Styles */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Stats Grid Component */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.stat-card.users::before {
    background: linear-gradient(90deg, var(--accent), var(--purple));
}

.stat-card.bots::before {
    background: linear-gradient(90deg, var(--green), var(--green-bright));
}

.stat-card.downloads::before {
    background: linear-gradient(90deg, var(--orange), var(--yellow));
}

.stat-card.revenue::before {
    background: linear-gradient(90deg, var(--purple), var(--red));
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-card.users .stat-icon {
    background: rgba(88, 166, 255, 0.2);
    color: var(--accent);
}

.stat-card.bots .stat-icon {
    background: rgba(35, 134, 54, 0.2);
    color: var(--green-bright);
}

.stat-card.downloads .stat-icon {
    background: rgba(240, 136, 62, 0.2);
    color: var(--orange);
}

.stat-card.revenue .stat-icon {
    background: rgba(137, 87, 229, 0.2);
    color: var(--purple);
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-change.positive {
    color: var(--green-bright);
}

.stat-change.negative {
    color: var(--red);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 20px;
}

/* Content Grid Layout and Box Headers */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.box-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.view-all {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.view-all:hover {
    color: var(--accent-hover);
}

/* Chart Placeholder Component */
.chart-placeholder {
    height: 300px;
    background: linear-gradient(135deg,
        rgba(88, 166, 255, 0.05),
        rgba(137, 87, 229, 0.05),
        rgba(240, 136, 62, 0.05)
    );
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.chart-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(88, 166, 255, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.chart-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.chart-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.chart-subtext {
    color: var(--text-secondary);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Activity Feed Component */
.activity-list {
    space-y: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(45, 51, 59, 0.3);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: background-color 0.2s;
}

.activity-item:hover {
    background: rgba(45, 51, 59, 0.5);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    background: rgba(88, 166, 255, 0.2);
    color: var(--accent);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.activity-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Quick Actions Component */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-card {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-quaternary));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.action-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.action-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.action-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.page-header-content {
    flex: 1;
}

.time-range-selector {
    margin-left: 2rem;
}

.time-range-select {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s ease;
    min-width: 160px;
    
    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.time-range-select:hover {
    border-color: var(--accent);
    background-color: var(--bg-tertiary);
    box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.1);
}

.time-range-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}

/* Style the options when dropdown is open */
.time-range-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.75rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .time-range-select {
        width: 100%;
        margin-top: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .time-range-selector {
        margin-left: 0;
    }
}

/* Responsive Styles for Unique Components */
@media (max-width: 768px) {
    /* .container rule exists in both, but these are unique to styles1 */
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}