/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 20px;
    background-color: #e2e3e5;
    color: #4b4949;
}

h1,
h2 {
    color: #2c3e50;
    text-align: center;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgb(230, 229, 229);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(18, 18, 18, 0.1);
}

/* Flight Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #d3d2d2;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #385775;
    color: rgb(212, 209, 209);
}

tr:hover {
    background-color: #c7bfbf;
}

/* Weather Alert */
.meteo-avverso {
    background-color: #f1d8d8;
    /* Light red background */
    border-left: 5px solid #e74c3c;
}

.icon-warning {
    color: #510d06;
    margin-right: 5px;
    font-weight: bold;
}

/* Buttons */
.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-primary {
    background-color: #426379;
    color: rgb(233, 232, 232);
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-report {
    background-color: #27ae60;
    color: white;
    margin-top: 20px;
    display: block;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal */
.modal {
    display: NONE;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Risk Analysis Widget */
.risk-widget {
    margin-top: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.chart-container {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.risk-bar-container {
    width: 100%;
    margin-bottom: 10px;
}

.risk-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: bold;
}

.progress-bar-bg {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 20px;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    text-align: center;
    color: white;
    line-height: 20px;
    transition: width 1s ease-in-out;
}

.low-risk {
    background-color: #2ecc71;
}

.medium-risk {
    background-color: #f39c12;
}

.high-risk {
    background-color: #e74c3c;
}

/* Notes Section */
textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}