/* Custom styles for Voice Deception Analyzer */

/* Fixed navbar spacing */
body {
    padding-top: 76px;
}

.navbar.fixed-top {
    z-index: 1030;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

/* File upload styling */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Custom progress bars */
.progress {
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-section {
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.25), transparent 60%), linear-gradient(130deg, #0b0f3a, #1d2cff 45%, #a100ff);
    color: #fff;
}

.hero-shot {
    margin: 0 auto;
    text-align: center;
}

.hero-shot img {
    max-width: 50% !important;
    height: 50%;
    width: auto;
    display: block;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(10, 6, 44, 0.45);
}

#pricing .table-responsive {
    width: 100% !important;
    overflow-x: auto;
    margin-bottom: 2rem;
}

#pricing .pricing-table {
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    table-layout: fixed;
}

#pricing .pricing-table thead {
    background: linear-gradient(135deg, #4c1efe, #c539ff) !important;
}

#pricing .pricing-table th {
    padding: 1rem;
    text-align: center;
    color: #fff !important;
    font-weight: 600;
    border: none;
}

#pricing .pricing-table td {
    padding: 1rem;
    text-align: center;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#pricing .pricing-table tbody tr:last-child td {
    border-bottom: none;
}

#pricing .pricing-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

#pricing .pricing-table .plan-name {
    font-weight: 600;
    font-size: 1.1rem;
}

#pricing .pricing-table .plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700 !important;
}

#pricing .pricing-table .plan-usage {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
}

.section-blue {
    background: linear-gradient(135deg, #050a2c, #111a65);
    color: #fff;
}

.section-blue .section-heading span,
.section-blue .section-heading h2,
.section-blue .section-heading p {
    color: #fff;
}

.panel-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.panel-card p {
    color: rgba(255, 255, 255, 0.7);
}

.panel-card a {
    color: #ffc107;
    text-decoration: none;
}

.panel-card a:hover {
    color: #ffca2c;
    text-decoration: underline;
}

.panel-card ul {
    color: rgba(255, 255, 255, 0.7);
}

.accordion-dark .accordion-item {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.accordion-dark .accordion-button {
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.accordion-dark .accordion-button::after {
    filter: invert(1);
}

.accordion-dark .accordion-body {
    color: rgba(255, 255, 255, 0.75);
}

/* Card enhancements */
.card {
    border: none;
    border-radius: 12px;
}

.section-compact {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.section-heading .badge {
    margin-bottom: 1rem;
}

.section-heading p {
    margin-bottom: 0;
}

.plan-stack {
    max-width: 520px;
    margin: 0 auto 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan-card {
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: #1d1d1f;
}

.plan-card.featured {
    background: linear-gradient(135deg, #4c1efe, #c539ff);
    color: #fff;
}

.plan-card .plan-label {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-bottom: 0.75rem;
}

.plan-card.featured .plan-label {
    background: rgba(255, 255, 255, 0.25);
}

.plan-card .plan-period {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.plan-card .plan-price {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.plan-card .plan-usage {
    color: rgba(0, 0, 0, 0.45);
}

.plan-card .plan-usage strong {
    color: #1d1d1f;
}

.plan-card.featured .plan-usage {
    color: rgba(255, 255, 255, 0.75);
}

.plan-cta {
    margin-top: 2rem;
    text-align: center;
}

.plan-stack + .plan-cta {
    margin-top: 1.5rem;
}

.plan-cta .btn {
    border-radius: 30px;
    padding: 0.9rem 3rem;
    font-weight: 600;
}

.restore-link {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.card-header {
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* API response styling */
#apiResponseContent {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-1 {
        font-size: 3rem;
    }
    
    .section-compact {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    .plan-card {
        padding: 1.25rem;
    }
    
    .hero-shot img {
        max-width: 50% !important;
    }
    
    #pricing .pricing-table {
        font-size: 0.85rem;
    }
    
    #pricing .pricing-table th,
    #pricing .pricing-table td {
        padding: 0.75rem 0.5rem;
    }
    
    #pricing .pricing-table .plan-price {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    #pricing .pricing-table {
        font-size: 0.75rem;
    }
    
    #pricing .pricing-table th,
    #pricing .pricing-table td {
        padding: 0.5rem 0.25rem;
    }
    
    #pricing .pricing-table .plan-price {
        font-size: 1rem;
    }
    
    .plan-cta .btn {
        padding: 0.75rem 2rem;
        font-size: 0.95rem;
    }
}

/* Smooth transitions */
.card, .btn, .alert {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Custom badge styling */
.badge {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 6px;
}

/* Loading animation */
.loading-overlay .spinner-border {
    animation: spin 1s linear infinite;
}

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

/* Footer styling */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form enhancements */
.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

.form-text {
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Navigation enhancements */
.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.nav-link {
    font-weight: 500;
}

/* Table styling for API documentation */
.table-dark {
    --bs-table-bg: rgba(255, 255, 255, 0.05);
}

/* Code block styling */
pre {
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Utility classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--bs-primary), var(--bs-secondary)) 1;
}

/* Recording indicator animation */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.recording-indicator {
    animation: blink 1s infinite;
}
