/* Estilos para o Calendário Econômico */
.economic-calendar {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.economic-calendar h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.calendar-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.calendar-filter {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-filter:hover, .calendar-filter:focus {
    border-color: #3498db;
    outline: none;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-nav {
    background-color: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.date-nav:hover {
    background-color: #e0e0e0;
}

#current-date {
    font-weight: 500;
    color: #333;
    min-width: 90px;
    text-align: center;
}

.calendar-container {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

.calendar-container::-webkit-scrollbar {
    width: 6px;
}

.calendar-container::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.calendar-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 6px;
}

.calendar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: #888;
}

.calendar-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ccc;
}

.economic-event {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.economic-event:hover {
    background-color: #f9f9f9;
}

.event-time {
    min-width: 60px;
    font-weight: 500;
    color: #555;
}

.event-country {
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.event-country img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.event-details {
    flex: 1;
}

.event-name {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
    display: flex;
    align-items: center;
}

.event-impact {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.impact-high {
    background-color: #e74c3c;
}

.impact-medium {
    background-color: #f39c12;
}

.impact-low {
    background-color: #3498db;
}

.event-values {
    display: flex;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    flex-wrap: wrap;
    gap: 15px;
}

.event-value {
    display: flex;
    flex-direction: column;
}

.value-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 2px;
}

.value-actual {
    font-weight: 500;
    color: #2ecc71;
}

.value-forecast {
    font-weight: 500;
    color: #3498db;
}

.value-previous {
    font-weight: 500;
    color: #95a5a6;
}

.no-events {
    padding: 30px;
    text-align: center;
    color: #888;
    font-style: italic;
}

/* Responsividade */
@media (max-width: 768px) {
    .calendar-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .economic-event {
        flex-direction: column;
    }
    
    .event-time, .event-country {
        margin-bottom: 10px;
    }
    
    .event-country {
        justify-content: flex-start;
    }
    
    .event-values {
        flex-direction: column;
        gap: 8px;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.economic-event {
    animation: fadeIn 0.3s ease forwards;
}

/* Estilos para o modo escuro */
.dark-mode .economic-calendar {
    background-color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .economic-calendar h3,
.dark-mode #current-date,
.dark-mode .event-name {
    color: #ecf0f1;
}

.dark-mode .calendar-filter {
    background-color: #34495e;
    border-color: #2c3e50;
    color: #ecf0f1;
}

.dark-mode .calendar-filter:hover, 
.dark-mode .calendar-filter:focus {
    border-color: #3498db;
}

.dark-mode .date-nav {
    background-color: #34495e;
    color: #ecf0f1;
}

.dark-mode .date-nav:hover {
    background-color: #2c3e50;
}

.dark-mode .economic-event {
    border-bottom-color: #34495e;
}

.dark-mode .economic-event:hover {
    background-color: #34495e;
}

.dark-mode .event-time,
.dark-mode .value-label {
    color: #bdc3c7;
}

.dark-mode .calendar-container::-webkit-scrollbar-track {
    background: #2c3e50;
}

.dark-mode .calendar-container::-webkit-scrollbar-thumb {
    background-color: #34495e;
} 