/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #1a2234;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #2d3748;
    border-radius: 8px;
    width: 80%;
    max-width: 1000px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

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

.modal-header {
    padding: 15px 20px;
    background-color: #2d3748;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.4rem;
}

.close {
    color: #aaaaaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 20px;
}

/* Responsive Enhancements */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .full-width {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .metrics-grid, 
    .city-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .assets-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .document-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .document-actions {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    .card-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .link-secondary {
        display: block;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-card {
        padding: 15px;
    }
    
    .dashboard-card h2 {
        font-size: 1.2rem;
    }
    
    .metric-value {
        font-size: 1.2rem;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
