/* =============================================================================
   DanteCore — Foglio Stile Base
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Reset Base
   ----------------------------------------------------------------------------- */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* -----------------------------------------------------------------------------
   Container
   ----------------------------------------------------------------------------- */

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* -----------------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------------- */

.header {
    background: linear-gradient(135deg, #e63946 0%, #d62839 100%);
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* -----------------------------------------------------------------------------
   Content
   ----------------------------------------------------------------------------- */

.content {
    padding: 1.5rem;
}

/* -----------------------------------------------------------------------------
   Section
   ----------------------------------------------------------------------------- */

.section {
    margin-bottom: 1.5rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

/* -----------------------------------------------------------------------------
   Status Row
   ----------------------------------------------------------------------------- */

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.status-row:last-child {
    border-bottom: none;
}

.status-label {
    color: #555;
}

.status-value {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* -----------------------------------------------------------------------------
   Status Indicators
   ----------------------------------------------------------------------------- */

.status-ok {
    color: #2a9d8f;
}

.status-error {
    color: #e63946;
}

.status-warning {
    color: #e9c46a;
}

.check-icon {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    line-height: 1.25rem;
    text-align: center;
    border-radius: 50%;
    font-size: 0.75rem;
}

.check-icon.ok {
    background-color: #2a9d8f;
    color: #fff;
}

.check-icon.error {
    background-color: #e63946;
    color: #fff;
}

/* -----------------------------------------------------------------------------
   Table List
   ----------------------------------------------------------------------------- */

.table-list {
    list-style: none;
}

.table-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
}

/* -----------------------------------------------------------------------------
   Stats
   ----------------------------------------------------------------------------- */

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.stat-value {
    font-weight: 600;
    color: #333;
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */

.footer {
    background-color: #f9f9f9;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    border-top: 1px solid #eee;
}

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */

@media (max-width: 480px) {
    body {
        padding: 1rem 0.5rem;
    }

    .header h1 {
        font-size: 1.25rem;
    }

    .content {
        padding: 1rem;
    }
}
