/* Key Rates Widget Styles */
.key-rates-widget {
    background: #194C9F;
  
    padding: 25px;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.25);
}

/* Header Styles */
.key-rates-header {
    display: flex;
    align-items: center;
    gap: 12px;
    
    padding-bottom: 15px;
   
}

.key-rates-header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.key-rates-header-icon i {
    font-size: 28px;
    color: white;
}

.key-rates-main-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: white;
    line-height: 1.2;
}

/* Rates List Styles */
.key-rates-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.key-rate-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.key-rate-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

 

.rate-name {
    font-size: 16px;
    font-weight: 500;
    color: white;
    line-height: 1.3;
    text-align: left;
}

.rate-percentage {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-align: center;
    min-width: 80px;
}

.rate-date {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
    min-width: 90px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .key-rates-widget {
        padding: 20px;
        margin: 0 10px;
        max-width: none;
    }

    .key-rates-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .key-rates-header-icon {
        width: 45px;
        height: 45px;
    }

    .key-rates-header-icon i {
        font-size: 24px;
    }

    .key-rates-main-title {
        font-size: 20px;
    }

    .key-rate-row {
        grid-template-columns: 1fr auto auto;
        gap: 10px;
        padding: 15px 0;
    }

    .rate-name {
        font-size: 15px;
    }

    .rate-percentage {
        font-size: 16px;
        min-width: 70px;
    }

    .rate-date {
        font-size: 13px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .key-rates-widget {
        padding: 15px;
    }

    .key-rates-header {
        /*flex-direction: column;*/
        /*text-align: center;*/
        gap: 8px;
        margin-bottom: 18px;
    }

    .key-rates-main-title {
        font-size: 18px;
    }

    .key-rate-row {
            /*grid-template-columns: 1fr;*/
        gap: 2px;
        padding: 12px 0;
        text-align: center;
    }

    .rate-name {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .rate-percentage {
        font-size: 20px;
        font-weight: 800;
        margin-bottom: 3px;
    }

    .rate-date {
        font-size: 12px;
        opacity: 0.9;
    }
}

/* Animation Effects */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.key-rate-row {
    animation: slideInUp 0.5s ease forwards;
}

.key-rate-row:nth-child(1) { animation-delay: 0.1s; }
.key-rate-row:nth-child(2) { animation-delay: 0.15s; }
.key-rate-row:nth-child(3) { animation-delay: 0.2s; }
.key-rate-row:nth-child(4) { animation-delay: 0.25s; }
.key-rate-row:nth-child(5) { animation-delay: 0.3s; }
.key-rate-row:nth-child(6) { animation-delay: 0.35s; }
.key-rate-row:nth-child(7) { animation-delay: 0.4s; }
.key-rate-row:nth-child(8) { animation-delay: 0.45s; }
.key-rate-row:nth-child(9) { animation-delay: 0.5s; }
.key-rate-row:nth-child(10) { animation-delay: 0.55s; }

/* Hover Effects */
.key-rate-row:hover .rate-percentage {
    transform: scale(1.05);
    font-weight: 800;
}

.key-rate-row:hover .rate-name {
    color: rgba(255, 255, 255, 1);
}

.key-rate-row:hover .rate-date {
    color: rgba(255, 255, 255, 0.9);
}

/* Focus and Accessibility */
.key-rates-widget:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .key-rates-widget {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }

    .key-rates-header-icon,
    .key-rates-main-title,
    .rate-name,
    .rate-percentage,
    .rate-date {
        color: black !important;
    }

    .key-rates-header-icon {
        background: #f0f0f0 !important;
    }
}