/* custom.css */

/* Base Theme Colors */
:root {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-primary: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: #60a5fa;
    --success: #34d399;
    --error: #ef4444;
    --warning: #fbbf24;
    --border-color: #374151;
}

/* Reset and Base Styles */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.6s ease-out 0.6s forwards;
    opacity: 0;
}

/* Split-screen Animation */
@keyframes transformContent {
    0% {
        opacity: 0.7;
        transform: scale(0.98);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.format-transform {
    animation: transformContent 0.8s ease-in-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Split-screen Layout Styles */
.recorder-container {
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.format-preview-panel, .report-results-panel {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    min-height: 400px;
    max-height: calc(100vh - 400px); /* Reduced max height to prevent overlap with Generate Report button */
    display: flex;
    flex-direction: column;
    position: relative; /* Ensure proper positioning */
    margin-bottom: 20px; /* Add margin to prevent overlap with Generate Report button */
}

/* Ensure panels are hidden by default, but allow JS to override */
#format-preview-panel.hidden, #report-results-panel.hidden {
    display: none; /* Hide panels when they have the hidden class */
}

/* When not hidden, ensure panels are visible with proper display type */
#format-preview-panel:not(.hidden), #report-results-panel:not(.hidden) {
    display: flex; /* Display as flex when not hidden */
}

/* Panel loading indicator */
.panel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: rgba(31, 41, 55, 0.7);
    border-radius: 0.5rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

/* Highlight sections in the format preview */
.format-preview-panel .section-highlight {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--accent-primary);
    padding-left: 0.5rem;
    transition: background-color 0.3s ease;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .split-screen-container {
        flex-direction: column;
    }
    
    .format-preview-panel {
        margin-top: 1rem;
        max-height: 400px;
    }
}

/* Navigation Styles */
.nav-dark {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-light);
}

.logo-img {
  height: 48px;         /* Sets a comfortable display height */
  width: auto;          /* Maintains the image's aspect ratio */
  max-width: 100px;      /* Prevents the logo from growing too large */
  object-fit: contain;  /* Ensures the image fits well within its bounds */
  display: block;       /* Eliminates any unwanted inline spacing */
  border-radius: 8px;   /* Makes corners slightly rounded */
}

/* Responsive adjustment for mobile devices */
@media (max-width: 640px) {
  .logo-img {
    height: 40px;       /* Slightly smaller on mobile */
    max-width: 80px;
  }
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(to right, rgba(30, 64, 175, 0.8), rgba(17, 24, 39, 0.8)),
              url('/assets/images/banner.png') center/cover no-repeat;
  border-bottom: 2px solid #374151;
}

/* Card Styles */
.card-dark {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card-dark:hover {
    transform: translateY(-5px);
    border-color: var(--accent-light);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

/* Pricing Cards */
.pricing-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.pricing-card.popular {
    border: 2px solid var(--accent-primary);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

/* Button Styles */
.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-light);
    color: var(--accent-light);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--accent-light);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Form Elements */
.input-dark {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.input-dark:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Modal Styles */
.modal {
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

/* Loading Elements */
.spinner-border {
    border: 3px solid rgba(96, 165, 250, 0.1);
    border-top: 3px solid var(--accent-light);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

#loading-overlay {
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(4px);
}

/* Notification Styles */
.notification {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.notification.success {
    border-color: var(--success);
    background-color: rgba(52, 211, 153, 0.1);
}

.notification.error {
    border-color: var(--error);
    background-color: rgba(239, 68, 68, 0.1);
}

.notification.info {
    border-color: var(--accent-light);
    background-color: rgba(96, 165, 250, 0.1);
}

/* Avatar Styles */
.avatar-container {
    background-color: var(--accent-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

/* Features Section */
.feature-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-light);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

/* Table Styles */
.table-dark {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.table-dark th {
    background-color: var(--bg-tertiary);
}

.table-dark td {
    border-color: var(--border-color);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Footer Styles */
.footer-dark {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* Mobile Menu */
.mobile-menu {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mobile-menu {
        display: block;
    }

    .desktop-menu {
        display: none;
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .no-print {
        display: none !important;
    }

    .container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Custom Transitions */
.transition-all {
    transition: all 0.3s ease;
}

.hover-translate {
    transition: transform 0.3s ease;
}

.hover-translate:hover {
    transform: translateY(-5px);
}

/* Status Indicators */
.status-active {
    background-color: rgba(52, 211, 153, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-inactive {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

/* Focus States */
*:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Testimonial Carousel Styles */
.testimonials-container {
    max-width: 100%;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 320px;
    max-width: 384px;
    flex-shrink: 0;
    margin: 0 16px;
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: 280px;
        max-width: 320px;
        margin: 0 8px;
    }
}

/* Navigation Dots */
#testimonialDots button {
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

#testimonialDots button:hover {
    transform: scale(1.2);
}
