: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, #avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.avatar-loading {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-left: 3px solid #1e293b;
}

.chat-box {
    background-color: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
    max-height: 70vh;
    position: relative;
    border-top: 4px solid #1e293b;
}

.chat-header {
    padding: 1rem;
    background-color: #1e293b;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h3 {
    font-size: 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-container {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    min-height: 200px;
    max-height: calc(70vh - 130px); /* Account for header and input area */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--border-color);
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
}

.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: var(--border-color);
}

.chat-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-light);
    border-radius: 3px;
}

.message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    max-width: 85%;
    line-height: 1.6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-message {
    background-color: rgba(30, 41, 59, 0.1);
    border-left: 3px solid #1e293b;
}

.user-message {
    background-color: rgba(76, 201, 240, 0.1);
    border-right: 3px solid var(--saivyy-light);
}

.outfit-message {
    background-color: #fff7ed;
    margin-right: auto;
    border-left: 4px solid var(--warning-color);
    max-height: 250px;
    overflow-y: auto;
    padding: 1rem;
    width: 100%;
}

.outfit-message h3 {
    color: var(--warning-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.input-container {
    padding: 1rem;
    background-color: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

#userInput {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    min-height: 80px;
    transition: var(--transition);
}

#userInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.input-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.mic-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1e293b;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(30, 41, 59, 0.2);
    border: 2px solid #1e293b;
}

.mic-button:hover {
    transform: scale(1.1);
    background-color: #2d3748;
}

.mic-button.recording {
    background-color: var(--saivyy-medium);
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1e293b;
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(30, 41, 59, 0.2);
}

.send-btn:hover {
    transform: scale(1.1);
    background-color: #2d3748;
}

.status-indicator {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    padding: 0.5rem;
    font-style: italic;
}

.end-interview-container {
    padding: 0.5rem 1rem 1rem;
    display: flex;
    justify-content: center;
}

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

.end-interview-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: 0.5s;
}

.end-interview-btn:hover:before {
    left: 100%;
}

.end-interview-btn:hover {
    background-color: var(--saivyy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(67, 97, 238, 0.4);
}

.end-interview-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(67, 97, 238, 0.2);
}

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

/* Camera Container */
.camera-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 240px;
    height: 180px;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    z-index: 200;
    border: 3px solid var(--primary-color);
}

#cameraElement {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.camera-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.camera-label {
    color: white;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Outfit Analysis */
.outfit-analysis-container {
    position: fixed;
    bottom: 6rem;
    left: 1.25rem;
    max-width: 350px;
    width: 90%;
    z-index: 100;
    display: none;
    max-height: calc(100vh - 14rem); /* Ensure there's space at top and bottom */
}

.outfit-card, .expression-card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-left: 4px solid var(--saivyy-medium);
}

.outfit-card::-webkit-scrollbar {
    width: 6px;
}

.outfit-card::-webkit-scrollbar-track {
    background: var(--border-color);
}

.outfit-card::-webkit-scrollbar-thumb {
    background-color: var(--warning-color);
    border-radius: 3px;
}

.close-outfit-analysis {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-outfit-analysis:hover {
    background-color: var(--border-color);
    color: var(--error-color);
}

.outfit-analysis-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.outfit-analysis-header i {
    font-size: 1.5rem;
    color: var(--warning-color);
}

.outfit-analysis-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: 600;
}

.outfit-analysis-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.outfit-analysis-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.outfit-analysis-section h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.outfit-analysis-section p {
    margin: 0;
    color: var(--text-color);
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.outfit-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.outfit-rating .stars {
    display: flex;
    gap: 0.25rem;
}

.outfit-rating .stars i {
    color: #f59e0b;
}

.outfit-rating .score {
    font-weight: 600;
    color: var(--text-color);
}

.outfit-toggle-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.outfit-analysis-toggle, .expression-analysis-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.outfit-analysis-toggle:hover, .expression-analysis-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.outfit-analysis-toggle:focus, .expression-analysis-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.expression-analysis-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.expression-card {
    position: relative;
    height: 100%;
    padding: 2rem;
    overflow-y: auto;
}

.expression-card::-webkit-scrollbar {
    width: 8px;
}

.expression-card::-webkit-scrollbar-track {
    background: var(--border-color);
}

.expression-card::-webkit-scrollbar-thumb {
    background-color: var(--primary-light);
    border-radius: 4px;
}

.close-expression-analysis {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-light);
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-expression-analysis:hover {
    background-color: var(--border-color);
    color: var(--primary-color);
}

.expression-analysis-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 1rem;
}

.expression-analysis-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.expression-analysis-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.expression-analysis-content {
    margin-bottom: 2rem;
}

.expression-entry {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease-in-out;
}

.expression-entry:last-child {
    border-bottom: none;
}

.expression-time {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.expression-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.expression-item {
    flex: 1;
    min-width: 120px;
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    padding: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.expression-item-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.expression-item-value {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
}

.expression-suggestion {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: rgba(79, 70, 229, 0.1);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 0.25rem 0.25rem 0;
}

.expression-summary {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.expression-summary h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expression-duration {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.9rem;
}

.expression-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.75rem 0;
}

.expression-metric-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    width: 55%;
}

.expression-metric-label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expression-metric-value {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trend-indicator {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.expression-ideal-range {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.expression-meter {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.expression-meter-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-light), var(--secondary-color));
    border-radius: 4px;
}

.expression-metric-description {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: -0.25rem 0 0.75rem 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.expression-overall-rating {
    background-color: rgba(79, 70, 229, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
}

.expression-overall-rating h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.25rem;
}

.stars {
    color: #f59e0b;
}

.score {
    font-weight: 600;
    color: var(--primary-color);
}

.expression-feedback {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.expression-recommendations {
    background-color: rgba(14, 165, 233, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
}

.expression-recommendations h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expression-recommendations ul {
    margin: 0;
    padding-left: 1.5rem;
}

.expression-recommendations li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.expression-recommendations li:last-child {
    margin-bottom: 0;
}

.no-data-message {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--error-color);
    padding: 1rem;
    border-radius: 0 0.25rem 0.25rem 0;
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-header {
        justify-content: center;
    }
    
    .interview-grid {
        grid-template-columns: 1fr;
    }
    
    .video-container {
        max-height: 400px;
        width: 100%;
    }
    
    .chat-box {
        min-height: 450px;
        max-height: 60vh;
    }
    
    .chat-container {
        max-height: calc(60vh - 130px);
    }
    
    .camera-container {
        top: 5.5rem;
        right: 1rem;
        z-index: 150;
    }
    
    .outfit-analysis-container {
        bottom: 6rem;
        max-height: calc(100vh - 16rem);
    }
    
    .outfit-toggle-container {
        bottom: 1.25rem;
    }
    
    .expression-analysis-container {
        width: 100%;
        height: 100vh;
    }
    
    .expression-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0.5rem 0;
    }
    
    .brand-info h1 {
        font-size: 1.5rem;
    }
    
    .contact-header {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-left, .footer-right {
        text-align: center;
        align-items: center;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .video-container {
        max-height: 350px;
    }
    
    .chat-box {
        min-height: 400px;
        max-height: 55vh;
    }
    
    .chat-container {
        max-height: calc(55vh - 120px);
        padding-bottom: 100px;
    }
    
    .camera-container {
        width: 180px;
        height: 135px;
        right: 0.75rem;
        top: 5rem;
    }
    
    .outfit-analysis-container {
        max-width: 320px;
        left: 0.75rem;
        bottom: 5rem;
        max-height: calc(100vh - 14rem);
    }
    
    .outfit-toggle-container {
        position: static;
        flex-direction: row;
        gap: 0.5rem;
        display: flex !important;
        margin-bottom: 0.5rem;
        justify-content: flex-start;
        align-items: center;
    }
    
    .outfit-analysis-toggle, .expression-analysis-toggle {
        display: flex !important;
        width: 40px;
        height: 40px;
        background: #1e293b;
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 1.2em;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 4px rgba(30, 41, 59, 0.2);
        transition: var(--transition);
        margin: 0;
    }
    
    .input-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Place the outfit/expression buttons before fullscreen on mobile */
    .input-actions {
        flex-direction: row;
    }
    
    .outfit-toggle-container {
        order: 0;
    }
    
    .fullscreen-btn, .mic-button, .live-chat-toggle, .send-btn {
        order: 1;
    }
    
    .expression-analysis-container {
        width: 100%;
        height: 100vh;
    }
    
    .expression-card {
        padding: 1rem;
    }
    
    .expression-analysis-header h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .app-header {
        padding: 1rem;
    }
    
    .logo {
        height: 2.5rem;
        width: 2.5rem;
        font-size: 1.75rem;
    }
    
    .brand-info h1 {
        font-size: 1.25rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .contact-link {
        font-size: 0.8rem;
    }
    
    .footer-logo {
        height: 2rem;
        width: 2rem;
        font-size: 1.5rem;
    }
    
    .footer-brand-info h3 {
        font-size: 1.25rem;
    }
    
    .app-header h1 {
        font-size: 1.5rem;
    }
    
    .card h2 {
        font-size: 1.25rem;
    }
    
    .interview-grid {
        gap: 1.5rem;
    }
    
    .video-container {
        max-height: 250px;
    }
    
    .chat-header h3 {
        font-size: 1.1rem;
    }
    
    .message {
        padding: 0.75rem;
        max-width: 95%;
    }
    
    .ai-message, .user-message {
        font-size: 0.95rem;
    }
    
    .chat-box {
        min-height: 350px;
        max-height: 50vh;
    }
    
    .chat-container {
        max-height: calc(50vh - 110px);
        padding-bottom: 130px;
    }
    
    .camera-container {
        width: 120px;
        height: 90px;
        right: 0.5rem;
        top: 4.5rem;
    }
    
    .outfit-analysis-container {
        bottom: 4.5rem;
        left: 0.5rem;
        max-width: 280px;
        width: calc(100% - 1rem);
        max-height: calc(100vh - 12rem);
    }
    
    .outfit-toggle-container {
        left: 0.5rem;
        bottom: 0.75rem;
    }
    
    .outfit-card {
        padding: 1rem;
    }
    
    .input-container {
        padding: 0.75rem;
    }
    
    #userInput {
        min-height: 60px;
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
    
    .expression-analysis-container {
        width: 100%;
        height: 100vh;
        padding-top: 60px;
    }
    
    .expression-card {
        padding: 1rem;
    }
    
    .expression-analysis-header h2 {
        font-size: 1.25rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .app-header {
        padding: 0.75rem 1rem;
    }
    
    .app-header h1 {
        font-size: 1.25rem;
    }
    
    .main-content {
        padding: 1rem 0.75rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .video-container {
        max-height: 200px;
    }
    
    .message {
        max-width: 100%;
    }
    
    .chat-box {
        min-height: 300px;
        max-height: 55vh;
    }
    
    .chat-container {
        max-height: calc(55vh - 100px);
        padding: 0.75rem;
    }
    
    .camera-container {
        width: 100px;
        height: 75px;
        top: 4rem;
    }
    
    .outfit-analysis-container {
        width: calc(100% - 1rem);
        max-width: none;
        left: 0.5rem;
        bottom: 4rem;
        max-height: 60vh;
    }
    
    .outfit-toggle-container {
        bottom: 0.75rem;
    }
    
    .outfit-card {
        max-height: 70vh;
    }
    
    .outfit-analysis-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .expression-analysis-container {
        width: 100%;
        height: 100vh;
        padding-top: 60px;
    }
    
    .expression-card {
        padding: 1rem;
    }
    
    .expression-analysis-header h2 {
        font-size: 1.25rem;
    }
}

/* Styles for the report loading indicator */
.report-loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.report-spinner {
    width: 40px;
    height: 40px;
    border: 5px solid rgba(30, 41, 59, 0.3);
    border-radius: 50%;
    border-top-color: #1e293b;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

.report-loading-text {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

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

/* Add a subtle branded background pattern to the main content */
.main-content {
    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;
}

/* Add styles for Live Chat Feature */
.live-chat-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1e293b;
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(30, 41, 59, 0.2);
    font-size: 1.2em;
    padding: 0;
}

.live-chat-toggle:hover {
    transform: scale(1.1);
    background-color: #2d3748;
    color: white;
}

.live-chat-toggle.active {
    background-color: var(--saivyy-dark);
    color: white;
}

.status-indicator {
    display: flex;
    align-items: center;
    min-height: 20px; /* Ensure space is reserved */
    margin-top: 5px;
}

#liveChatStatus {
    color: #dc3545;
    font-size: 0.9em;
}

#liveChatStatus .fas.fa-wifi {
    margin-left: 5px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
/* End of Live Chat Feature Styles */

/* Add these back to restore removed styles */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 41, 59, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(30, 41, 59, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 41, 59, 0);
    }
}

/* Add these styles to enhance the verbal analysis display */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.check-analysis-btn {
    background-color: #1e293b;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.check-analysis-btn:hover {
    background-color: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.primary-metric {
    border-left: 4px solid #1e293b;
    background-color: rgba(30, 41, 59, 0.1);
}

.metric-subtitle {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

.filler-words-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.speech-tip {
    background-color: #f8f9fa;
    border-left: 4px solid var(--saivyy-light);
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.speech-tip i {
    color: var(--saivyy-light);
    font-size: 1.2em;
}

.pattern-metrics {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.pattern-metric {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-radius: 6px;
    background-color: #f5f5f5;
    border-left: 4px solid #ccc;
}

.pattern-metric.positive {
    border-left-color: var(--success-color);
    background-color: rgba(16, 185, 129, 0.1);
}

.pattern-metric.negative {
    border-left-color: var(--error-color);
    background-color: rgba(239, 68, 68, 0.1);
}

.pattern-label {
    font-weight: 500;
    margin-bottom: 5px;
}

.pattern-value {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
}

.pattern-description {
    font-size: 0.9em;
    color: #555;
}

.speech-recommendations li {
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Modal elements styles */
.close-detail-btn {
    background-color: var(--saivyy-medium);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
    display: block;
    margin: 0 auto;
}

.close-detail-btn:hover {
    background-color: var(--saivyy-dark);
}

.verbal-tip {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid var(--saivyy-light);
}

.verbal-tip h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.verbal-tip ul {
    margin: 0;
    padding-left: 20px;
}

.verbal-tip li {
    margin-bottom: 5px;
}

.metric-large {
    font-size: 1.8em;
    font-weight: bold;
    margin: 10px 0;
    color: var(--saivyy-medium);
}

.metric-context {
    font-size: 0.9em;
    color: #555;
}

/* Add a watermark */
.page-container::after {
    content: "Saivyy Technologies";
    position: fixed;
    bottom: 15px;
    right: 15px;
    transform: rotate(-45deg);
    font-size: 16px;
    opacity: 0.1;
    color: var(--saivyy-dark);
    pointer-events: none;
    z-index: -1;
    font-weight: 700;
    letter-spacing: 1px;
}

.form-help-text {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    font-style: italic;
}

.toggle-group {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-label input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.toggle-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

.round-indicator {
    background-color: rgba(30, 41, 59, 0.15);
    color: #1e293b;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.round-selection {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #1e293b;
}

.round-selection h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.round-options {
    margin: 1.5rem 0;
    padding-left: 0.5rem;
}

.round-option {
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.round-option:hover {
    background-color: #e9f5ff;
    border-color: var(--saivyy-light);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.round-option:active {
    background-color: #d1e7ff;
}

.round-select-prompt {
    font-weight: 500;
    color: var(--text-color);
    margin-top: 1rem;
    padding: 0.5rem;
    border-top: 1px dashed #e9ecef;
}

/* Make sure HTML content in messages is properly formatted */
.message.ai-message {
    max-width: 80%;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Ensure round selection options appear correctly inside message elements */
.message .round-selection {
    margin: 0.5rem 0;
    width: 100%;
}

.message .round-option {
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
}

/* Style for better touch targets on mobile */
@media (max-width: 768px) {
    .round-option {
        padding: 1rem;
    }
    
    .message .round-option {
        margin-bottom: 1rem;
    }
}

/* Round Selection Container Styles */
.round-selection-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 2rem 0;
}

.secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #f1f5f9;
    color: var(--text-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1.5rem;
}

.secondary-btn:hover {
    background-color: #e2e8f0;
}

.secondary-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
}

/* Fullscreen styles */
.fullscreen-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1e293b;
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(30, 41, 59, 0.2);
}

.fullscreen-btn:hover {
    transform: scale(1.1);
    background-color: #2d3748;
}

.fullscreen-btn.active {
    background-color: var(--saivyy-dark);
}

/* Fullscreen mode */
.video-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: black;
    border-radius: 0;
}

.video-container.fullscreen #avatar {
    width: 100%;
    height: 100%;
    pointer-events: none; /* Prevent touch/mouse interaction with the avatar */
}

/* Make all avatars non-interactive regardless of fullscreen state */
#avatar {
    pointer-events: none;
}

/* Subtitles container */
.subtitles-container {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    z-index: 1000;
}

/* Ensure subtitles are visible in fullscreen mode */
.video-container.fullscreen .subtitles-container {
    bottom: 100px; /* Position higher in fullscreen mode to avoid controls */
    z-index: 10000; /* Higher z-index to ensure visibility */
}

.ai-subtitle, .user-subtitle {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    max-width: 80%;
    text-align: center;
    font-size: 1.1em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-subtitle.active, .user-subtitle.active {
    opacity: 1;
}

/* Make subtitles larger and more visible in fullscreen mode */
.video-container.fullscreen .ai-subtitle,
.video-container.fullscreen .user-subtitle {
    font-size: 1.3em;
    max-width: 90%;
    padding: 10px 20px;
}

/* Mic controls in fullscreen */
.fullscreen-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container.fullscreen:hover .fullscreen-controls {
    opacity: 1;
}

.fullscreen-mic-btn, .fullscreen-mute-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.fullscreen-mic-btn:hover, .fullscreen-mute-btn:hover {
    transform: scale(1.1);
    background-color: var(--saivyy-dark);
}

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

/* Add styles for avatar selection */
.avatar-selection-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(145deg, #ffffff, #f5f7ff);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.1);
}

.avatar-selection-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--saivyy-dark);
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

.avatar-selection-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #1e293b;
    border-radius: 2px;
}

/* Avatar Selection Layout */
.avatar-selection-layout {
    display: flex;
    min-height: 500px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Avatar Options Panel */
.avatar-options-panel {
    padding: 1.5rem;
    background: rgba(67, 97, 238, 0.05);
    border-radius: 1rem;
    width: 100%;  /* Full width now */
}

.avatar-options-panel h3 {
    padding: 1.5rem;
    margin: 0;
    font-size: 1.2rem;
    color: var(--saivyy-dark);
    background-color: white;
    border-bottom: 1px solid rgba(67, 97, 238, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.avatar-options-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    width: 100%;
}

/* Avatar Option Item */
.avatar-option {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.avatar-option:hover {
    transform: translateX(5px);
    background-color: #f0f4ff;
    border-color: rgba(67, 97, 238, 0.1);
}

.avatar-option.selected {
    border-color: #1e293b;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15);
    transform: translateY(-2px);
}

.avatar-option.selected .avatar-option-icon {
    border: 3px solid #1e293b;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.3);
}

.avatar-option-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.avatar-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.avatar-option:hover .avatar-thumbnail {
    transform: scale(1.05);
}

.avatar-option-name {
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    color: var(--text-color);
    margin-top: 0.25rem;
}

/* Remove the avatar preview panel styles as they're no longer needed */
.avatar-preview-panel,
.avatar-preview-container,
.avatar-preview-loading,
#avatarPreview {
    display: none;
}

/* Adjust the avatar selection container for mobile responsiveness */
@media (max-width: 576px) {
    .avatar-options-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .avatar-option {
        padding: 1rem 0.75rem;
    }
    
    .avatar-option-icon {
        width: 80px;
        height: 80px;
    }
}

/* Action Buttons */
.avatar-selection-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.avatar-selection-actions button {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#backToSetupFromAvatarButton {
    background: #f0f4ff;
    color: var(--saivyy-dark);
    border: 2px solid rgba(67, 97, 238, 0.1);
}

#backToSetupFromAvatarButton:hover {
    background: #e6ebff;
    transform: translateY(-2px);
}

#selectAvatarButton {
    background: #1e293b;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
}

#selectAvatarButton:hover {
    transform: translateY(-2px);
    background: #2d3748;
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.4);
}

/* Loading Indicator */
#avatarLoadingIndicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#avatarLoadingIndicator .spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(30, 41, 59, 0.1);
    border-top-color: #1e293b;
    margin-bottom: 1.5rem;
}

/* Additional responsive fixes */
@media (max-width: 576px) {
    .avatar-selection-container {
        padding: 1rem;
    }
    
    .avatar-selection-container h2 {
        font-size: 1.5rem;
    }
    
    .avatar-selection-actions {
        flex-direction: column;
    }
    
    .avatar-selection-actions button {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
}

/* 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;
    }
} 