/* Custom styles for Economic Data visualization */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Card styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.country-card {
    border-radius: 10px;
    overflow: hidden;
}

.country-header {
    padding: 1.5rem 1rem;
    background-size: cover;
    background-position: center;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.country-header h3 {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin: 0;
}

.country-name {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Badge styles */
.country-badge {
    display: inline-block;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 5px 12px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.country-badge:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.country-badge i {
    opacity: 0.6;
    margin-left: 4px;
}

.country-badge:hover i {
    opacity: 1;
}

/* Property styles */
.country-property {
    font-weight: bold;
    color: #495057;
}

/* Modal styles */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

.key-stat {
    font-weight: bold;
    color: #007bff;
}

/* Background colors for different GDP levels */
.gdp-high {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://upload.wikimedia.org/wikipedia/commons/thumb/d/d9/New_york_times_square-terabass.jpg/320px-New_york_times_square-terabass.jpg');
    background-size: cover;
}

.gdp-medium {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://upload.wikimedia.org/wikipedia/commons/thumb/f/f5/Sydney_Opera_House_and_Harbour_Bridge_Dusk_%282%29_2019-06-21.jpg/320px-Sydney_Opera_House_and_Harbour_Bridge_Dusk_%282%29_2019-06-21.jpg');
    background-size: cover;
}

.gdp-low {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://upload.wikimedia.org/wikipedia/commons/thumb/3/3b/Sunset_in_Jakarta.jpg/320px-Sunset_in_Jakarta.jpg');
    background-size: cover;
}

.gdp-world {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://upload.wikimedia.org/wikipedia/commons/thumb/2/22/Earth_Western_Hemisphere.jpg/320px-Earth_Western_Hemisphere.jpg');
    background-size: cover;
}

/* For small info tables */
.info-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.info-table th {
    background-color: rgba(0,0,0,0.03);
    padding: 10px;
    text-align: left;
    border: 1px solid #dee2e6;
    width: 40%;
    font-weight: 600;
}

.info-table td {
    padding: 10px;
    border: 1px solid #dee2e6;
}

/* Loading animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#loading .spinner-border {
    animation: pulse 1.5s infinite, spinner-border 0.75s linear infinite;
}

/* Dashboard summary cards */
#dashboard-content .card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#dashboard-content .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

#dashboard-content .display-6 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #007bff;
}

/* Filter card */
.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem;
}

.card-header h5 {
    font-weight: 600;
    color: #495057;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .country-name {
        font-size: 1.5rem;
    }
    
    #dashboard-content .display-6 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* Footer styling */
footer {
    background-color: #343a40;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

footer a:hover {
    color: #f8f9fa;
} 