/* ============================================================
   VM6 OVH Server Manager - Client Area styling
   Matches VM6 indigo dark theme
   ============================================================ */

.vm6sm-clientarea{
    --vm6sm-bg:        #0f172a;
    --vm6sm-surface:   #1e293b;
    --vm6sm-border:    #334155;
    --vm6sm-text:      #f1f5f9;
    --vm6sm-text-dim:  #94a3b8;
    --vm6sm-text-mute: #64748b;
    --vm6sm-accent:    #6366f1;
    --vm6sm-accent-hi: #a5b4fc;
    --vm6sm-success:   #10b981;
    --vm6sm-warning:   #f59e0b;
    --vm6sm-danger:    #ef4444;

    background: var(--vm6sm-bg);
    border: 1px solid var(--vm6sm-border);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
    color: var(--vm6sm-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.vm6sm-section-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--vm6sm-border);
}
.vm6sm-section-header h3{
    margin: 0;
    color: var(--vm6sm-text);
    font-size: 1.15rem;
    font-weight: 700;
}
.vm6sm-section-header h3 i{
    color: var(--vm6sm-accent);
    margin-right: 0.5rem;
}
.vm6sm-server-name{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 0.85rem;
    color: var(--vm6sm-accent-hi);
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.3);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
}

/* Info tile grid (status, datacentre, OS, range) */
.vm6sm-info-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.vm6sm-info-tile{
    background: var(--vm6sm-surface);
    border: 1px solid var(--vm6sm-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}
.vm6sm-tile-label{
    color: var(--vm6sm-text-mute);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}
.vm6sm-tile-value{
    color: var(--vm6sm-text);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Status badges */
.vm6sm-state-badge{
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(148,163,184,0.15);
    color: var(--vm6sm-text-dim);
}
.vm6sm-state-badge.vm6sm-state-ok,
.vm6sm-state-badge.vm6sm-state-active{
    background: rgba(16,185,129,0.15);
    color: #34d399;
}
.vm6sm-state-badge.vm6sm-state-hacked,
.vm6sm-state-badge.vm6sm-state-error{
    background: rgba(239,68,68,0.15);
    color: #f87171;
}

/* Sub-card (Hardware, IPs, Actions) */
.vm6sm-card{
    background: var(--vm6sm-surface);
    border: 1px solid var(--vm6sm-border);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
}
.vm6sm-card h4{
    margin: 0 0 0.9rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--vm6sm-text);
}
.vm6sm-card h4 i{
    color: var(--vm6sm-accent);
    margin-right: 0.5rem;
}

/* Spec list (Hardware) */
.vm6sm-spec-list{
    margin: 0;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.5rem 1rem;
}
.vm6sm-spec-list dt{
    color: var(--vm6sm-text-mute);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 0.15rem;
}
.vm6sm-spec-list dd{
    margin: 0;
    color: var(--vm6sm-text);
    font-size: 0.9rem;
}

/* IP list */
.vm6sm-ip-list{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.vm6sm-ip{
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.25);
    color: var(--vm6sm-accent-hi);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Action buttons (placeholder for Phases 2-5) */
.vm6sm-actions-card{
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(139,92,246,0.02));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
}
.vm6sm-actions-card h4{
    margin: 0 0 0.9rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--vm6sm-text);
}
.vm6sm-actions-card h4 i{ color: var(--vm6sm-accent); margin-right: 0.5rem; }
.vm6sm-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}
.vm6sm-btn{
    background: var(--vm6sm-surface);
    border: 1px solid var(--vm6sm-border);
    color: var(--vm6sm-text);
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms ease;
}
.vm6sm-btn:not(:disabled):hover{
    border-color: var(--vm6sm-accent);
    background: rgba(99,102,241,0.1);
}
.vm6sm-btn:disabled{
    opacity: 0.5;
    cursor: not-allowed;
}
.vm6sm-btn small{
    color: var(--vm6sm-text-mute);
    font-weight: 400;
    margin-left: 0.3rem;
}
.vm6sm-btn-danger{
    border-color: rgba(239,68,68,0.4);
    color: #fca5a5;
}

.vm6sm-warn{
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.3);
    color: #fbbf24;
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}
