/**
 * Prompt Use Page Styles
 * Nexus Application
 */

/* ========================================
   Variable Cards
   ======================================== */

.variable-card {
    transition: background-color 0.15s ease;
}

.variable-card:hover {
    background-color: var(--color-bg-hover, #f8f9fa);
}

/* ========================================
   Contact Preview
   ======================================== */

.contact-preview {
    background-color: var(--color-bg-secondary, #f8f9fa);
    border-left: 3px solid var(--bs-primary);
}

.preview-contact-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border-secondary, #dee2e6);
    font-size: 0.9rem;
}

.preview-contact-item:last-child {
    border-bottom: none;
}

.preview-toggle {
    color: var(--bs-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.preview-toggle:hover {
    text-decoration: underline;
    color: var(--bs-primary);
}

/* ========================================
   Performance Metrics
   ======================================== */

.output-metrics {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--color-border-secondary, #dee2e6);
}

.output-metrics strong {
    color: var(--bs-primary);
    font-weight: 600;
}

[data-user-theme="dark"] .output-metrics {
    background: linear-gradient(135deg, #2a2d30 0%, #1a1d20 100%);
    border-color: var(--color-border-secondary, #495057);
}

/* ========================================
   Format Toggle Buttons
   ======================================== */

.btn-group .btn {
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-group .btn.active {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

/* ========================================
   Metadata Display
   ======================================== */

.text-sm {
    font-size: 0.875rem;
}

.badge.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--bs-success);
    font-weight: 500;
}

[data-user-theme="dark"] .badge.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.2);
    color: #75b798;
}

/* ========================================
   Mobile Responsive
   ======================================== */

@media (max-width: 991px) {
    .sticky-header {
        position: relative !important;
    }

    .sticky-header .d-flex.gap-2 {
        width: 100%;
        justify-content: space-between;
    }

    .sticky-header .dropdown {
        flex-grow: 1;
    }

    .sticky-header .dropdown .dropdown-toggle {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .variable-code {
        font-size: 0.85rem;
    }

    .output-metrics {
        font-size: 0.8rem;
    }

    .output-metrics .d-flex {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

/* ========================================
   Enhanced Generate Button
   ======================================== */

#generateBtn {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0b5ed7 100%);
    border: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#generateBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

#generateBtn:active:not(:disabled) {
    transform: translateY(0);
}

/* ========================================
   Variable Badge Enhancements
   ======================================== */

.badge.bg-success {
    font-weight: 600;
    padding: 0.4rem 0.7rem;
}

/* ========================================
   Dark Mode Support
   ======================================== */

[data-user-theme="dark"] .contact-preview {
    background-color: #2a2d30;
    border-left-color: #86b7fe;
}

[data-user-theme="dark"] .preview-contact-item {
    border-bottom-color: #495057;
}

[data-user-theme="dark"] .variable-card:hover {
    background-color: #2a2d30;
}
