/* ===== ASOSIY ===== */
.risk-widget {
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.5s;
    border: 1px solid;
}

.risk-on-bg {
    background-color: #052e16;
    border-color: #065f46;
}

.risk-off-bg {
    background-color: #450a0a;
    border-color: #991b1b;
}

.risk-on-text {
    color: #6ee7b7;
}

.risk-off-text {
    color: #fca5a5;
}

.card-content {
    padding: 1.5rem;
}

.description {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.header-container,
.risk-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.risk-header-container {
    margin-bottom: 1rem;
}

.risk-header {
    font-size: 1rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid;
    display: inline-block;
    transition: all 0.3s;
    margin-bottom: 0;
}

.risk-on-header {
    background-color: #064e3b;
    border-color: #047857;
    color: #6ee7b7;
}

.risk-off-header {
    background-color: #7f1d1d;
    border-color: #b91c1c;
    color: #fca5a5;
}

.animate-pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== TOGGLE BUTTON ===== */
.toggle-btn {
    /* height: 3.7rem; */
    width: 11rem;
    border-radius: 50px;
    line-height: 1.3;
    padding: 10px 8px;
    border: 1px solid;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
}

.toggle-btn:hover {
    transform: scale(1.05);
}

.toggle-btn:active {
    transform: scale(0.95);
}

.risk-on-btn {
    background: linear-gradient(to right, #10b981, #047857);
    border-color: #047857;
}

.risk-off-btn {
    background: linear-gradient(to right, #ef4444, #b91c1c);
    border-color: #b91c1c;
}

.risk-on-btn:hover {
    background: linear-gradient(to right, #059669, #065f46);
}

.risk-off-btn:hover {
    background: linear-gradient(to right, #dc2626, #991b1b);
}

/* ===== ASSET VA MATN ===== */
.category-table {
    margin-bottom: 1.5rem;
}

.category-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.bullish-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 0.5rem;
}

.bearish-title {
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.asset-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.asset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f3f4f6;
    padding: 0.5rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.asset-name {
    font-weight: 500;
}

.asset-impact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bullish-impact {
    color: #15803d;
    font-weight: 600;
}

.bearish-impact {
    color: #b91c1c;
    font-weight: 600;
}

.icon {
    width: 1rem;
    height: 1rem;
}

.bullish-icon {
    fill: #16a34a;
}

.bearish-icon {
    fill: #dc2626;
}

/* ===== RESPONSIVE ===== */

/* Mobil: 639px dan kichik */
@media (max-width: 639px) {
    .toggle-btn {
        height: 3rem;
        width: 8.5rem;
        font-size: 0.75rem; /* 12px */
    }

    .risk-header {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .category-title,
    .bullish-title,
    .bearish-title {
        font-size: 0.95rem;
    }

    .asset-item {
        padding: 0.4rem;
    }

    .asset-name {
        font-size: 0.85rem;
    }

    .asset-impact {
        font-size: 0.8rem;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Planshet: 640px - 1023px */
@media (min-width: 640px) and (max-width: 1023px) {
    .toggle-btn {
        height: 3.2rem;
        width: 9.5rem;
        font-size: 0.875rem;
    }

    .risk-header {
        font-size: 0.95rem;
        padding: 0.45rem 0.9rem;
    }

    .category-title,
    .bullish-title,
    .bearish-title {
        font-size: 1rem;
    }

    .asset-name {
        font-size: 0.9rem;
    }

    .asset-impact {
        font-size: 0.85rem;
    }
}