:root {
    --primary-color: #1e293b;
    --primary-light: #2d3748;
    --primary-dark: #0f172a;
    --secondary-color: #2d3748;
    --accent-color: #1e293b;
    --background-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --saivyy-gradient: linear-gradient(135deg, #1e293b, #2d3748);
    --saivyy-dark: #0f172a;
    --saivyy-medium: #1e293b;
    --saivyy-light: #2d3748;
    --saivyy-accent: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.app-header {
    background: #1e293b;
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 0.5rem;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.tagline {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.contact-header {
    display: flex;
    gap: 1.5rem;
}

.contact-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Footer Styles */
.app-footer {
    background: #1e293b;
    color: white;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--saivyy-light);
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: right;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--saivyy-light);
}

.main-content {
    flex: 1;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: radial-gradient(rgba(76, 201, 240, 0.05) 1px, transparent 1px), 
                      radial-gradient(rgba(114, 9, 183, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Setup Container */
.setup-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    transition: var(--transition);
    border-top: 4px solid #1e293b;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, rgba(67, 97, 238, 0.1) 50%);
    border-radius: 0 0 0 80px;
    z-index: 0;
}

.card h2 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--saivyy-medium);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.primary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(30, 41, 59, 0.25);
}

.primary-btn:hover {
    transform: translateY(-2px);
    background: #2d3748;
    box-shadow: 0 6px 10px rgba(30, 41, 59, 0.3);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading {
    display: none;
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

.spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(30, 41, 59, 0.3);
    border-radius: 50%;
    border-top-color: #1e293b;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Interview Container */
.interview-container {
    display: none;
    margin-top: 1.5rem;
}

.interview-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
    height: auto;
}

.video-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background-color: #000;
    aspect-ratio: 4/3;
    height: auto;
    width: 100%;
}

#videoElement {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.chat-box {
    background-color: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    border-left: 3px solid #1e293b;
}

.fullscreen-mic-btn.active, .fullscreen-mute-btn.active {
    background-color: #dc2626;
}

/* Outfit Analysis Camera Interface */
.camera-interface {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.camera-preview {
    position: relative;
    width: 100%;
    height: 300px;
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

#outfitCamera {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: white;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timer-display.active {
    opacity: 1;
}

.camera-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.timer-options {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.capture-btn, .timer-btn, .retake-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.capture-btn {
    background: #1e293b;
    color: white;
    width: 100%;
    max-width: 300px;
}

.capture-btn:hover {
    background: #2d3748;
    transform: translateY(-2px);
}

.timer-btn {
    background: #0f766e;
    color: white;
    min-width: 80px;
}

.timer-btn:hover {
    background: #115e59;
    transform: translateY(-2px);
}

.timer-btn.active {
    background: #115e59;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.retake-btn {
    background: #f1f5f9;
    color: var(--text-color);
    width: 100%;
    max-width: 300px;
}

.retake-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Mobile Responsive Styles */
@media (max-width: 576px) {
    .camera-controls {
        width: 100%;
    }
    
    .timer-options {
        width: 100%;
        justify-content: space-between;
    }
    
    .timer-btn {
        flex: 1;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .capture-btn, .retake-btn {
        width: 100%;
        padding: 0.75rem;
    }
}

/* Fullscreen modal for outfit analysis */
.outfit-analysis-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    z-index: 3000 !important;
    background: rgba(30,41,59,0.92); /* dark overlay */
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.outfit-analysis-fullscreen .outfit-card {
    max-width: 480px;
    width: 100%;
    max-height: 95vh;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    border-radius: 1.25rem;
    padding: 2rem 1rem;
    background: #fff;
    position: relative;
    overflow-y: auto;
}

@media (max-width: 576px) {
    .outfit-analysis-fullscreen .outfit-card {
        max-width: 98vw;
        padding: 1rem 0.25rem;
    }
} 