@import url('./design-tokens.css');
/* ============================================================================
   INTELLIGAINZER COST TRACKER UI STYLES
   Realtime cost display for Voice-First UI
   ========================================================================== */

.igz-cost-tracker {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 280px;
    background: var(--glass-bg-dark);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(var(--glass-blur-md));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: var(--z-dropdown);
    overflow: hidden;
    transition: all 0.3s ease;
}

.igz-cost-tracker:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.2);
}

/* Header */
.igz-cost-tracker-header {
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.5);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.igz-cost-tracker-header:hover {
    background: rgba(30, 41, 59, 0.7);
}

.igz-cost-tracker-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
}

.igz-cost-icon {
    font-size: 18px;
}

.igz-cost-label {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

.igz-cost-total {
    font-size: 14px;
    font-weight: 700;
    color: #4ade80;
    margin-left: auto;
    margin-right: 8px;
}

.igz-cost-toggle-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.igz-cost-toggle-btn:hover {
    color: #e2e8f0;
}

.igz-cost-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    line-height: 1;
}

.igz-cost-close-btn:hover {
    color: #ef4444;
}

.igz-cost-chevron {
    display: inline-block;
    transition: transform 0.3s;
}

/* Body */
.igz-cost-tracker-body {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}



.igz-cost-tracker-body::-webkit-scrollbar-track {
    background: var(--glass-bg-dark);
}

.igz-cost-tracker-body::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.igz-cost-tracker-body::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* Session Info */
.igz-cost-session-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.igz-cost-session-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.igz-cost-session-duration .label {
    color: #94a3b8;
}

.igz-cost-session-duration .value {
    color: #e2e8f0;
    font-weight: 600;
}

.igz-cost-reset-btn {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-sm);
    color: #e2e8f0;
    font-size: 14px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.igz-cost-reset-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Providers */
.igz-cost-providers {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: 12px;
}

.igz-cost-provider {
    padding: 10px 12px;
    background: rgba(30, 41, 59, 0.3);
    border-left: 3px solid #6366f1;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.igz-cost-provider:hover {
    background: rgba(30, 41, 59, 0.5);
}

.igz-cost-provider .provider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.igz-cost-provider .provider-name {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

.igz-cost-provider .provider-cost {
    font-size: 13px;
    font-weight: 700;
    color: #fbbf24;
}

.igz-cost-provider .provider-details {
    font-size: 11px;
    color: #94a3b8;
}

.igz-cost-empty {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 12px;
}

/* ElevenLabs Credits */
.igz-cost-elevenlabs-credits {
    padding: 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

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

.igz-credits-header .provider-name {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

.igz-refresh-btn {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-xs);
    color: #e2e8f0;
    font-size: 12px;
    padding: 2px 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.igz-refresh-btn:hover {
    background: rgba(99, 102, 241, 0.3);
}

.igz-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.igz-credits-bar {
    width: 100%;
    height: 8px;
    background: var(--glass-bg-dark);
    border-radius: var(--radius-xs);
    overflow: hidden;
    margin-bottom: 8px;
}

.igz-credits-progress {
    height: 100%;
    background: #4ade80;
    border-radius: var(--radius-xs);
    transition: width 0.3s ease, background 0.3s ease;
}

.igz-credits-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.igz-credits-info .credits-remaining {
    color: #e2e8f0;
    font-weight: 600;
}

.igz-credits-info .credits-tier {
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xs);
}

.igz-credits-reset {
    margin-top: 8px;
    text-align: center;
}

.igz-credits-reset small {
    color: #64748b;
    font-size: 10px;
}

/* Actions */
.igz-cost-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.igz-cost-btn {
    flex: 1;
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.igz-cost-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

.igz-cost-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .igz-cost-tracker {
        width: 240px;
        bottom: 80px;
        right: 10px;
    }
}

/* Compact Mode (optional) */
.igz-cost-tracker.compact {
    width: 200px;
}

.igz-cost-tracker.compact .igz-cost-tracker-body {
    padding: 12px;
}

.igz-cost-tracker.compact .igz-cost-provider {
    padding: 8px 10px;
}







