/* AI Workforce Solutions — Operations Dashboard */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #0e0e1a;
    color: #d0d0e0;
    min-height: 100vh;
}

/* Header */
.header {
    padding: 2rem 3rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.brand h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}
.brand h1 span { color: #b44dff; }
.brand .subtitle {
    font-size: .9rem;
    color: #7a7a9a;
    margin-top: .25rem;
}
.header-time {
    color: #7a7a9a;
    font-size: .875rem;
    text-align: right;
}

/* Main */
.main { padding: 0 3rem 3rem; }

/* Sections */
.section { margin-bottom: 2.5rem; }
.section-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}
.section-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0f0;
}
.section-header .section-icon {
    font-size: 1.25rem;
}
.section-link {
    color: #b44dff;
    font-size: .85rem;
    text-decoration: none;
    font-weight: 500;
}
.section-link:hover { text-decoration: underline; }

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

/* Cards */
.card {
    background: #16162a;
    border: 1px solid #2a2a44;
    border-radius: 8px;
    padding: 1.25rem;
    position: relative;
    transition: border-color .2s, box-shadow .2s;
}
.card:hover {
    border-color: #b44dff;
    box-shadow: 0 0 20px rgba(180, 77, 255, .1);
}

/* Status Cards */
.status-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.card-title {
    font-size: .85rem;
    color: #9a9ab0;
    font-weight: 500;
}
.card-badge {
    font-size: .7rem;
    color: #7a7a9a;
    background: #1e1e36;
    padding: .2rem .5rem;
    border-radius: 4px;
}
.card-value {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    padding: .5rem 0;
}
.card-value.green { color: #39ff14; }
.card-value.purple { color: #b44dff; }
.card-value.yellow { color: #ffaa00; }
.card-value.blue { color: #00d4ff; }
.card-bar {
    height: 4px;
    background: #1e1e36;
    border-radius: 2px;
    margin-top: .75rem;
    overflow: hidden;
}
.card-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
}
.card-bar-fill.green { background: #39ff14; }
.card-bar-fill.purple { background: #b44dff; }
.card-bar-fill.yellow { background: #ffaa00; }

/* Service Cards */
.service-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
}
.service-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.service-dot.up { background: #39ff14; box-shadow: 0 0 8px rgba(57,255,20,.4); }
.service-dot.down { background: #ff3355; box-shadow: 0 0 8px rgba(255,51,85,.4); }
.service-dot.checking { background: #ffaa00; animation: pulse 1.5s infinite; }
.service-dot.unknown { background: #555; }

.service-info { flex: 1; }
.service-name {
    font-size: .95rem;
    font-weight: 600;
    color: #e0e0f0;
}
.service-desc {
    font-size: .8rem;
    color: #7a7a9a;
}
.service-response {
    font-size: .75rem;
    color: #555;
    font-family: monospace;
}
.service-link {
    color: #b44dff;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 500;
    padding: .35rem .75rem;
    border: 1px solid #b44dff;
    border-radius: 5px;
    transition: all .2s;
    white-space: nowrap;
}
.service-link:hover {
    background: #b44dff;
    color: #fff;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

/* Footer */
.footer {
    border-top: 1px solid #1e1e36;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: #555;
}

/* Responsive */
@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .header, .main, .footer { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (max-width: 640px) {
    .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
    .header { flex-direction: column; gap: .5rem; }
    .card-value { font-size: 1.5rem; }
}
