body { 
    font-family: Arial, sans-serif; 
    margin: 0;
    padding: 20px;
    background: #0d0d12;
    min-height: 100vh;
    color: #e0e0e0;
}

.header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: #14141c;
    border-radius: 12px;
    border: 1px solid #222230;
}

.logo {
    height: 65px;
    width: auto;
}

.header h1 {
    margin: 0;
    font-size: 1.8em;
    color: #ffffff;
}

.subtitle {
    margin: 0;
    color: #888;
    font-size: 0.95em;
}

h2 {
    color: #ffffff;
    margin-top: 25px;
    font-weight: 600;
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #14141c;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222230;
}

th, td { 
    padding: 14px 12px; 
    border-bottom: 1px solid #222230; 
    text-align: left; 
    color: #e0e0e0;
}

th { 
    background: #1a1a24;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

tr:hover {
    background: #1a1a24;
}

td strong {
    color: #6366f1;
}

.meteo-ok { 
    color: #10b981;
    font-weight: 500;
}

.meteo-warning { 
    color: #fbbf24; 
    font-weight: bold; 
}

.meteo-bad { 
    color: #ef4444; 
    font-weight: bold; 
}

.btn { 
    padding: 10px 18px; 
    cursor: pointer; 
    background: #6366f1;
    color: white; 
    border: none; 
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn:hover { 
    background: #5558e8;
}

.modal { 
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.85); 
    overflow-y: auto;
}

.modal-content { 
    background: #14141c;
    margin: 10px auto;
    padding: 25px; 
    width: 90%; 
    max-width: 700px; 
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px; 
    position: relative;
    border: 1px solid #222230;
    color: #e0e0e0;
}

.modal-content h2, .modal-content h3 {
    color: #ffffff;
}

.close { 
    position: sticky;
    top: 0;
    float: right; 
    font-size: 28px; 
    font-weight: bold; 
    cursor: pointer;
    background: #14141c;
    color: #888;
    padding: 0 10px;
    z-index: 10;
    border-radius: 50%;
}

.close:hover {
    color: #ef4444;
}

.risk-cell {
    min-width: 160px;
}

.risk-cell small {
    color: #888;
    font-size: 0.8em;
}

.mini-progress-bar { 
    background: #222230; 
    height: 10px; 
    border-radius: 5px; 
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill { 
    height: 100%; 
    border-radius: 5px;
}

.risk-low { 
    background: #10b981;
}

.risk-medium { 
    background: #f59e0b;
}

.risk-high { 
    background: #ef4444;
}

.loading { 
    color: #6366f1; 
    font-style: italic; 
}

.pdf-form { 
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #222230;
}

.pdf-form textarea { 
    width: 100%; 
    height: 80px;
    padding: 12px;
    border: 1px solid #222230;
    border-radius: 8px;
    resize: vertical;
    background: #0d0d12;
    color: #e0e0e0;
    font-family: inherit;
}

.pdf-form textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.pdf-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #14141c;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Loading Spinner */
.loading {
    color: #6366f1;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #333;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade in animation for table rows */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

tr {
    animation: fadeIn 0.3s ease;
}

/* Smooth transitions */
td, th {
    transition: background 0.2s ease;
}

.btn {
    transition: all 0.2s ease;
}

.progress-fill {
    transition: width 0.5s ease;
}

/* Pulse animation for risk-high */
.risk-high {
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Modal fade in */
.modal-content {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

