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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1e293b;
}

header h1 {
    font-size: 2rem;
    color: #60a5fa;
}

.header-stats {
    display: flex;
    gap: 20px;
}

.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    background: #1e293b;
    border-radius: 8px;
}

.stat-badge .label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.stat-badge .value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #22c55e;
}

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

.card {
    background: #1e293b;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.card h2 {
    margin-bottom: 20px;
    color: #60a5fa;
    font-size: 1.3rem;
}

.card h3 {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #60a5fa;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.status-item {
    text-align: center;
    padding: 20px;
    background: #0f172a;
    border-radius: 8px;
}

.status-count {
    font-size: 2.5rem;
    font-weight: bold;
    color: #22c55e;
    margin-bottom: 8px;
}

.status-label {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: #0f172a;
    border-radius: 8px;
}

.service-name {
    font-weight: 500;
}

.service-status {
    font-weight: 600;
}

#projects-list {
    max-height: 400px;
    overflow-y: auto;
}

.project-item {
    padding: 16px;
    background: #0f172a;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-info h4 {
    color: #60a5fa;
    margin-bottom: 4px;
}

.project-meta {
    font-size: 0.85rem;
    color: #94a3b8;
}

.project-status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-status-badge.incoming {
    background: #1e40af;
    color: #93c5fd;
}

.project-status-badge.active {
    background: #15803d;
    color: #86efac;
}

.project-status-badge.archived {
    background: #713f12;
    color: #fcd34d;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #475569;
    color: white;
}

.btn-secondary:hover {
    background: #334155;
}

.btn-outline {
    background: transparent;
    color: #60a5fa;
    border: 2px solid #60a5fa;
}

.btn-outline:hover {
    background: #60a5fa;
    color: #0f172a;
}

.loading {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
}

footer {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        gap: 20px;
    }
}
