:root {
    --primary-color: #63e0f1;
    --primary-hover: #46cde5;
    --bg-dark: #0f292a;
    --bg-card: #1e323b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #335455;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #eab308;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1 {
    font-size: 2.5rem;
    margin-top: 2rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Dashboard Widget */
.widget-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.chart-container {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.risk-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.risk-label {
    width: 60px;
    font-weight: bold;
}

.risk-bar-bg {
    flex-grow: 1;
    background-color: #334155;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.risk-bar-fill {
    height: 100%;
    background-color: var(--success);
    width: 0%;
    transition: width 1s ease, background-color 0.5s ease;
}

/* Table */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-card);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #334155;
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Meteo Indicators */
.meteo-avverso {
    background-color: rgba(239, 68, 68, 0.1);
    /* Red tint */
}

.meteo-avverso td {
    color: #fca5a5;
}

/* Buttons */
button,
.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

button:hover,
.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-main);
}

textarea {
    width: 100%;
    background-color: #0f172a;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-family: monospace;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeIn 0.5s ease-out forwards;
}