:root {
    --bg-main: #0a0d16;
    --bg-card: rgba(18, 24, 38, 0.65);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
    --accent-gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.45);
    --glow-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    min-height: 100vh;
    padding: 1.5rem;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(at 10% 20%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(59, 130, 246, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Header & Logo */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    background: var(--primary-gradient);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--glow-shadow);
}

.logo-text h1 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-text h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

/* Connection Status Card */
.connection-status-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.status-indicator-dot.active {
    background-color: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
    animation: pulse 2s infinite;
}

.status-indicator-dot.warning {
    background-color: var(--warning-color);
    box-shadow: 0 0 10px var(--warning-color);
}

.status-info {
    display: flex;
    flex-direction: column;
}

.status-label {
    font-size: 0.8rem;
    font-weight: 600;
}

.status-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Main Grid Layout */
.app-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .app-main-grid {
        grid-template-columns: 1fr;
    }
    .app-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-icon {
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.card-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

.section-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.45;
}

/* File Upload Zone */
.file-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 2rem 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.file-upload-zone:hover, .file-upload-zone.dragover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.04);
}

.upload-icon {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    transition: transform var(--transition-normal), color var(--transition-normal);
}

.file-upload-zone:hover .upload-icon {
    transform: translateY(-3px);
    color: var(--primary-color);
}

.upload-zone-content .primary-text {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.upload-zone-content .primary-text span {
    color: var(--primary-color);
    text-decoration: underline;
}

.upload-zone-content .secondary-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Message Boxes */
.error-message-box {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-md);
    color: #fca5a5;
    font-size: 0.8rem;
    line-height: 1.4;
}

.success-message-box {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    color: #a7f3d0;
    font-size: 0.8rem;
}

/* Template Chips */
.template-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chip-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.chip-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chip-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* Textarea wrapper */
.textarea-wrapper {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.textarea-wrapper textarea {
    width: 100%;
    min-height: 140px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    line-height: 1.5;
}

.char-counter {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.4);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
}

/* Audio Tuning Sliders */
.tuning-control {
    margin-bottom: 1.5rem;
}

.tuning-control:last-child {
    margin-bottom: 0;
}

.tuning-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.tuning-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.tuning-val {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-color);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-marks {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Model Dropdown and Filter */
.model-filter-wrapper {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.custom-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    outline: none;
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.custom-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

/* Warning/Info Banner */
.warning-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    color: #fde047;
    font-size: 0.8rem;
}

.warning-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Voices Grid */
.voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-top: 0.75rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

/* Scrollbar Styling */
.voices-grid::-webkit-scrollbar, .history-list::-webkit-scrollbar {
    width: 6px;
}
.voices-grid::-webkit-scrollbar-track, .history-list::-webkit-scrollbar-track {
    background: transparent;
}
.voices-grid::-webkit-scrollbar-thumb, .history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.voices-grid::-webkit-scrollbar-thumb:hover, .history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Loading state */
.loading-placeholder {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    gap: 0.75rem;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Voice Card UI */
.voice-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.65rem;
}

.voice-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

.voice-card.selected {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.voice-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-all;
}

.voice-model-type {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    font-weight: 600;
}

.voice-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Badges styling */
.badge {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-weight: 600;
}

.badge-male {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-female {
    background: rgba(236, 72, 153, 0.12);
    color: #f9a8d4;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.badge-north {
    background: rgba(99, 102, 241, 0.12);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-south {
    background: rgba(20, 184, 166, 0.12);
    color: #99f6e4;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.badge-unknown {
    background: rgba(100, 116, 139, 0.12);
    color: #cbd5e1;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.voice-card-check-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: var(--primary-color);
    display: none;
}

.voice-card.selected .voice-card-check-icon {
    display: block;
}

/* Action Button */
.action-card {
    margin-top: 0.5rem;
}

.btn-primary {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    outline: none;
    color: white;
    padding: 1.1rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--glow-shadow);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.55);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #1e293b;
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    border: 1px solid var(--border-color);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity var(--transition-fast);
}

.btn-icon {
    fill: currentColor;
}

.btn-spinner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.btn-primary.loading .btn-content {
    opacity: 0;
}

.btn-primary.loading .btn-spinner {
    display: block;
}

/* Result Card */
.audio-player-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.selected-voice-info-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}

.voice-display-name {
    font-size: 0.88rem;
    font-weight: 700;
}

.voice-display-badges {
    display: flex;
    gap: 0.35rem;
}

.player-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    border: 1px solid var(--border-color);
}

audio {
    width: 100%;
    outline: none;
}

.player-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* History */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.empty-history {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 2rem 0;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(99, 102, 241, 0.2);
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-width: 70%;
}

.history-text {
    font-size: 0.82rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.history-voice {
    font-weight: 600;
    color: var(--text-secondary);
}

.history-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon-only {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon-only:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-color: rgba(99, 102, 241, 0.3);
}

.btn-icon-only svg {
    fill: none;
    stroke: currentColor;
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* API Key Input Styling */
.api-key-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.custom-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    outline: none;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.custom-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.btn-connect {
    background: var(--primary-gradient);
    border: none;
    outline: none;
    color: white;
    padding: 0 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.btn-connect:hover {
    transform: translateY(-1px);
    box-shadow: var(--glow-shadow);
}

/* Login Wrapper */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 3rem);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-lg);
}

.login-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 2rem 1.5rem 1rem 1.5rem !important;
}

.login-header h2 {
    font-size: 1.25rem;
}

.login-header p {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.login-btn {
    margin-top: 0.5rem;
}

/* Admin Dashboard Elements */
.header-actions {
    display: flex;
    align-items: center;
}

.btn-logout-accent {
    display: flex;
    align-items: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.btn-logout-accent:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th, .admin-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.01);
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.table-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    color: var(--text-muted);
}

.table-empty-message {
    text-align: center !important;
    color: var(--text-muted);
    padding: 3rem !important;
}

/* Table cells */
.user-name-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.user-name-title {
    font-weight: 700;
}

.user-created-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.api-key-cell {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.key-display-input {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.5rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 0.75rem;
    width: 160px;
    outline: none;
}

.btn-icon-small {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon-small:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* Quota progress inside table */
.quota-progress-cell {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 180px;
}

.quota-text-info {
    font-size: 0.72rem;
}

.quota-used-text {
    font-weight: 700;
    color: var(--primary-color);
}

.quota-total-text {
    color: var(--text-muted);
}

.quota-progress-bg {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: hidden;
}

.quota-progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 5px;
}

/* Status Badges */
.status-badge {
    border: none;
    outline: none;
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.active:hover {
    background: rgba(16, 185, 129, 0.2);
}

.status-badge.blocked {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.blocked:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Table action buttons */
.table-actions-wrapper {
    display: flex;
    gap: 0.35rem;
}

.btn-table-action {
    border: none;
    outline: none;
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.btn-table-action.btn-edit {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-table-action.btn-edit:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-table-action.btn-regen {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.btn-table-action.btn-regen:hover {
    background: rgba(99, 102, 241, 0.2);
}

.btn-table-action.btn-delete {
    background: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.btn-table-action.btn-delete:hover {
    background: rgba(239, 68, 68, 0.18);
}

