/* Custom styles for Gestionale Studio */
html, body {
    min-height: 100vh;
}

body {
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.dashboard-card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dashboard-card .card-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.dashboard-card .metric {
    font-size: 1.8rem;
    font-weight: 600;
}

.alert-list .alert {
    margin-bottom: 0.5rem;
}

.alert-severity-critical {
    border-left: 4px solid #dc3545;
}

.alert-severity-warning {
    border-left: 4px solid #ffc107;
}

.alert-severity-info {
    border-left: 4px solid #0dcaf0;
}

.json-block {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 480px;
    overflow: auto;
}

.text-snippet {
    background: #fffdf2;
    border: 1px solid #f0e6c2;
    padding: 0.75rem;
    font-size: 0.85rem;
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
}

.timeline {
    list-style: none;
    padding-left: 0;
}

.timeline li {
    padding: 0.5rem 0;
    border-left: 3px solid #dee2e6;
    padding-left: 1rem;
    margin-left: 0.5rem;
    position: relative;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 0.85rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: #6c757d;
}

#projects-grid {
    height: calc(100vh - 220px);
    width: 100%;
}
