/* Dashboard Layout */

.dashboard-preview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

/* Main Content */
.main-content {
    padding: 1.5rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
}

/* Activity Feed */
.activity-feed {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

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

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.activity-dot.green {
    background: var(--success);
}

.activity-dot.blue {
    background: var(--primary);
}

.activity-dot.yellow {
    background: var(--warning);
}

.activity-dot.red {
    background: var(--danger);
}

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

.activity-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.activity-text strong {
    color: var(--text);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* User List Panel */
.user-list-panel {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}

.user-list {
    display: flex;
    flex-direction: column;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

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

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

.user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Sections */
.dashboard-section {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.section-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.analytics-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}

.analytics-icon {
    width: 40px;
    height: 40px;
    background: rgba(36, 107, 206, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.analytics-icon svg {
    width: 20px;
    height: 20px;
    stroke: #6fa8e8;
}

.analytics-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.analytics-value {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.analytics-trend {
    font-size: 0.75rem;
    color: var(--success);
}

.analytics-trend.down {
    color: var(--danger);
}

/* Transactions Table */
.transactions-table {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.transactions-table table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.transactions-table td {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.transactions-table tr:last-child td {
    border-bottom: none;
}

.table-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(36, 107, 206, 0.2);
    color: #6fa8e8;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(48, 209, 88, 0.15);
    color: var(--success);
}

.status-badge.pending {
    background: rgba(255, 214, 10, 0.15);
    color: var(--warning);
}

.status-badge.error {
    background: rgba(255, 69, 58, 0.15);
    color: var(--danger);
}

/* Server Grid */
.server-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.server-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}

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

.server-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.server-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.server-status.online {
    background: var(--success);
}

.server-status.warning {
    background: var(--warning);
}

.server-status.error {
    background: var(--danger);
}

.server-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.server-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 35px;
}

.server-stat-value {
    font-size: 0.75rem;
    font-weight: 600;
    width: 35px;
    text-align: right;
}

.server-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    overflow: hidden;
}

.server-bar-fill {
    height: 100%;
    border-radius: 99px;
}

.server-bar-fill.green {
    background: var(--success);
}

.server-bar-fill.blue {
    background: var(--primary);
}

.server-bar-fill.yellow {
    background: var(--warning);
}

.server-bar-fill.red {
    background: var(--danger);
}

/* Responsive for new sections */
@media (max-width: 900px) {
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .server-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .transactions-table {
        overflow-x: auto;
    }
}
