@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --border-glass: rgba(255, 255, 255, 0.3);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: transparent;
    margin: 0;
    overflow: hidden;
}

.widget-wrapper {
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}


.widget-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
}

.brand span {
    color: var(--text-main);
    font-weight: 400;
}

.last-updated {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.rates-table {
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.rate-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.rate-row:last-child {
    border-bottom: none;
}


.currency-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.currency-code {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.currency-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.rate-values {
    display: flex;
    gap: 15px;
    text-align: right;
}

.rate-item {
    display: flex;
    flex-direction: column;
}

.rate-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.rate-value {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
}

.change-badge {
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 10px;
}

.change-up {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.change-down {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.widget-footer {
    padding: 8px 16px;
    background: #fff;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0.8;
}

.widget-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.skeleton {
    background: #e2e8f0;
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}