/* Custom CSS for AI Interview Platform */

:root {
    --dark-bg-primary: #0f172a;
    --dark-bg-secondary: #1e293b;
    --dark-bg-tertiary: #334155;
    --dark-border: rgba(99, 102, 241, 0.1);
    --dark-text-primary: #f8fafc;
    --dark-text-secondary: #94a3b8;
    --accent-blue: #6366f1;
    --accent-purple: #4f46e5;
}

body {
    background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--dark-text-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card, .agent-card {
    box-shadow: 0 4px 24px rgba(80, 112, 255, 0.08), 0 1.5px 4px rgba(0,0,0,0.04);
    border-radius: 18px;
    background: var(--dark-bg-secondary);
    border: 1px solid var(--dark-border);
}

/* Enhanced Button Styles - Professional & Consistent */
.btn {
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover, .btn:focus {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.btn:active {
    transform: none;
    transition: all 0.1s;
}

/* Primary Button - Main Action */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

/* Success Button - Positive Actions */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover, .btn-success:focus {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

/* Danger Button - Destructive Actions */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover, .btn-danger:focus {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

/* Warning Button - Caution Actions */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover, .btn-warning:focus {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

/* Info Button - Information Actions */
.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-info:hover, .btn-info:focus {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

/* Secondary Button - Secondary Actions */
.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
}

.btn-secondary:hover, .btn-secondary:focus {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.5);
}

/* Outline Button Variants */
.btn-outline-primary {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
    border-radius: 8px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-height: 52px;
    border-radius: 16px;
}

/* Disabled State */
.btn:disabled, .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.btn:disabled:hover, .btn.disabled:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Button Groups */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Icon Integration */
.btn i, .btn .fas, .btn .far, .btn .fab {
    font-size: 1em;
    transition: transform 0.2s ease;
}

.btn:hover i, .btn:hover .fas, .btn:hover .far, .btn:hover .fab {
    transform: none;
}

/* Loading State */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading i {
    animation: spin 1s linear infinite;
}

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

.navbar {
    background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
    box-shadow: 0 2px 8px rgba(80, 112, 255, 0.08);
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(80, 112, 255, 0.16);
}

.alert {
    animation: fadeInDown 0.7s;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animate.css fadeIn for main content */
.animated-fadeIn {
    animation: fadeIn 1s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animated transcript messages */
.transcript-message {
    animation: fadeInUp 0.5s;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animated progress bar for scores */
.animated-bar {
    height: 18px;
    border-radius: 8px;
    background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
    box-shadow: 0 2px 8px rgba(80, 112, 255, 0.08);
    transition: width 1s cubic-bezier(.4,2,.6,1);
}

/* Loader spinner */
.loader {
    border: 4px solid #1e293b;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Custom scrollbars */
#transcript-container {
    scrollbar-width: thin;
    scrollbar-color: #6366f1 #1e293b;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
#transcript-container::-webkit-scrollbar {
    width: 8px;
    background: #1e293b;
}
#transcript-container::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 8px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .container { padding: 8px; }
    .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
    .btn-lg { padding: 0.8rem 1.5rem; font-size: 1rem; }
}

.transcript-bubble {
    display: inline-block;
    max-width: 85%;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(80,112,255,0.08);
    word-break: break-word;
    position: relative;
    animation-duration: 0.5s;
}
.agent-bubble {
    background: #1e3a8a;
    color: #dbeafe;
    align-self: flex-start;
    margin-right: auto;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.user-bubble {
    background: #065f46;
    color: #d1fae5;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
} 