/* Potential Income Component Styles */

.potential-income-container {
    margin-bottom: 25px;
    background: rgba(197, 160, 89, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.income-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.income-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.income-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.income-info-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.income-info-trigger:hover {
    background: var(--accent-gold);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}

.income-amount {
    font-family: var(--mono-font);
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
}

.income-currency {
    font-size: 14px;
    margin-left: 4px;
    font-weight: 600;
}

/* Dynamic Bar */
.income-bar-outer {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.income-bar-inner {
    height: 100%;
    width: 0%;
    /* Dynamic */
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-gold-light) 50%, var(--accent-gold) 100%);
    background-size: 200% 100%;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.income-hint {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

/* Modal Specifics */
.clickable-term {
    color: var(--accent-gold);
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

.kassa-status-list {
    margin-top: 20px;
    text-align: left;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.kassa-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.kassa-status-indicators {
    display: flex;
    gap: 8px;
}

.status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.check {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.code {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 5px currentColor;
}

.dot-green {
    background-color: #22c55e;
    color: #22c55e;
}

.dot-orange {
    background-color: #f59e0b;
    color: #f59e0b;
}

.dot-red {
    background-color: #ef4444;
    color: #ef4444;
}

/* Modal Overlay & Base Styles */
.inn-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(15px);
}

.inn-modal {
    background: radial-gradient(circle at top, #2a2a2a 0%, #121212 100%);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9), 0 0 30px rgba(197, 160, 89, 0.05);
    animation: modalEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEntrance {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .potential-income-container {
        padding: 15px;
    }

    .income-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .income-title-group {
        width: 100%;
        justify-content: space-between;
    }

    .income-label {
        font-size: 11px;
    }

    .income-amount {
        font-size: 24px;
        display: flex;
        align-items: baseline;
        gap: 4px;
    }

    .income-currency {
        font-size: 16px;
    }

    .income-info-trigger {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .income-hint {
        font-size: 10px;
    }

    .inn-modal {
        padding: 25px 20px;
        border-radius: 18px;
    }

    .modal-desc {
        font-size: 13px;
    }

    .kassa-status-list {
        max-height: 200px;
    }

    .kassa-status-item {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Light Theme Overrides */
[data-theme="light"] .inn-overlay {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .inn-modal {
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    border-color: #e0e0e0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .modal-desc {
    color: #555;
}

[data-theme="light"] .kassa-status-item {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

[data-theme="light"] .kassa-status-item span {
    color: #333;
}

[data-theme="light"] .clickable-term {
    color: #b8860b;
}

[data-theme="light"] .potential-income-container {
    background: rgba(197, 160, 89, 0.05);
    border-color: #e0e0e0;
}

[data-theme="light"] .income-bar-outer {
    background: #e8e8e8;
}