/* Custom Styles for Voxcruit */

:root {
    --primary-color: #4A90E2;
    --secondary-color: #7ED321;
    --accent-color: #F5A623;
    --danger-color: #D0021B;
    --success-color: #7ED321;
    --warning-color: #F5A623;
    --info-color: #50E3C2;
    --light-color: #F8F9FA;
    --dark-color: #333333;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
}

/* Authentication Body */
.auth-body {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-brand-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    min-height: 100vh;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-form-container {
    max-width: 480px;
    width: 100%;
    padding: 2rem;
}

@media (min-width: 768px) {
    .auth-form-container {
        max-width: 520px;
        padding: 2.5rem;
    }
}

.feature-item {
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-item i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.features-list {
    max-width: 400px;
    margin: 0 auto;
}

/* Better responsive alignment */
@media (max-width: 991px) {
    .auth-brand-section {
        display: none !important;
    }
    
    .auth-form-container {
        max-width: 100%;
        padding: 1.5rem;
    }
}

/* Interview Body */
.interview-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.interview-container {
    max-width: 800px;
    padding: 2rem;
}

.ai-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(74, 144, 226, 0.2);
}

.recording-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.recording-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.recording-btn.recording {
    animation: recordingPulse 1s infinite;
    background: #dc3545 !important;
}

@keyframes recordingPulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Score Circle */
.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(74, 144, 226, 0.2);
}

/* Integration Icons */
.integration-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.integration-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom Bootstrap Overrides */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #357abd 0%, #2968a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #6bc20a 100%);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1.25rem;
    font-weight: 600;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.875rem 1rem;
    transition: var(--transition);
    font-size: 1rem;
    min-height: 48px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

.badge-sm {
    font-size: 0.7em;
    padding: 0.3em 0.5em;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background: white;
    width: 240px;
    border-right: 1px solid #e9ecef;
}

.sidebar .navbar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid #f8f9fa;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.sidebar .nav {
    padding-top: 1rem;
}

.sidebar .nav-link {
    color: var(--dark-color);
    padding: 0.875rem 1.5rem;
    border-radius: 0;
    margin: 0;
    transition: var(--transition);
    font-weight: 400;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar .nav-link:hover {
    background: rgba(74, 144, 226, 0.08);
    color: var(--primary-color);
    border-left-color: rgba(74, 144, 226, 0.3);
    transform: translateX(2px);
}

.sidebar .nav-link.active {
    background: rgba(74, 144, 226, 0.12);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

.sidebar .nav-link.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px 0 0 2px;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar .nav-item {
    margin-bottom: 0.25rem;
}

.sidebar .nav-item:last-child {
    margin-bottom: 2rem;
}

/* Main Content */
.main-content {
    margin-left: 0;
    padding-top: 80px;
}

@media (min-width: 768px) {
    .main-content {
        margin-left: 240px;
    }
}

/* Page Content Animation */
.page-content {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Stats Cards */
.stats-card {
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.stats-card:hover {
    border-left-color: var(--accent-color);
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Modal Enhancements */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

/* Table Enhancements */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead th {
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: var(--dark-color);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(74, 144, 226, 0.05);
}

/* Upload Area */
.border-dashed {
    border-style: dashed !important;
    border-width: 2px !important;
    border-color: #dee2e6 !important;
    transition: var(--transition);
}

.border-dashed:hover {
    border-color: var(--primary-color) !important;
    background-color: rgba(74, 144, 226, 0.05);
}

/* Pricing Cards */
.card.border-primary {
    border: 2px solid var(--primary-color) !important;
    position: relative;
}

.card.border-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* Navigation Enhancements */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .display-4 {
        font-size: 2.5rem !important;
    }

    .auth-form-container {
        padding: 1rem;
    }

    .interview-container {
        padding: 1rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

/* Accessibility Improvements */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* Dark mode support */
/* @media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #f8f9fa;
        --light-color: #212529;
    }
} */

/* Print styles */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}