/**
 * Call Pages Styles
 * Styles for create, join, and room pages
 */

/* ===== CALL PAGE LAYOUT ===== */
.call-page {
    min-height: calc(100vh - 160px);
    padding: 120px 0 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.call-container {
    max-width: 600px;
    margin: 0 auto;
}

.call-header {
    text-align: center;
    margin-bottom: 2rem;
}

.call-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.call-header p {
    font-size: 1.125rem;
    color: #718096;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== CARD COMPONENTS ===== */
.room-card,
.permission-card,
.warning-card,
.error-card,
.instructions-card,
.qr-scanner-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

/* Enhanced Instructions Card */
.instructions-card.enhanced {
    padding: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.instructions-card.enhanced h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
}

/* Microphone Info */
.microphone-info {
    color: #718096;
    font-size: 0.95rem;
    text-align: center;
    margin: 1rem 0 0 0;
    font-style: italic;
}

/* Error Message */
.error-message {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error-message .error-icon {
    font-size: 1.25rem;
    color: #f56565;
}

.error-message p {
    color: #c53030;
    margin: 0;
    font-size: 0.9rem;
}

.room-card:hover,
.permission-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Warning Card */
.warning-card {
    border-left: 4px solid #f6ad55;
    background: #fffbf5;
}

.warning-card .warning-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Error Card */
.error-card {
    border-left: 4px solid #f56565;
    background: #fff5f5;
    text-align: center;
}

.error-card .error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ===== STATUS COMPONENTS ===== */
.room-status {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.room-status.success .status-icon {
    color: #48bb78;
}

.status-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    color: #4299e1;
}

.status-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.status-text p {
    color: #718096;
    margin: 0;
}

/* Permission Card */
.permission-card {
    text-align: center;
}

.permission-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.permission-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    text-align: center;
    margin: 2rem 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* ===== ROOM CODE COMPONENTS ===== */
.room-code-container {
    text-align: center;
    margin: 2rem 0;
}

.room-code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    background: #f7fafc;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    display: inline-block;
}

/* Room Code Input */
.room-code-input-container {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.room-code-input {
    flex: 1;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.room-code-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.room-code-input.valid {
    border-color: #48bb78;
    background: #f0fff4;
}

.room-code-input.invalid {
    border-color: #f56565;
    background: #fff5f5;
}

.input-help {
    text-align: center;
    margin-top: 0.5rem;
}

.input-help p {
    font-size: 0.875rem;
    color: #a0aec0;
    margin: 0;
}

/* ===== QR CODE ===== */
.qr-code-container {
    text-align: center;
    margin: 2rem 0;
}

.qr-code-container h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.qr-code {
    display: inline-block;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.qr-code img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

.qr-description {
    font-size: 0.875rem;
    color: #718096;
    margin: 0.5rem 0 0;
}

/* ===== SHARE OPTIONS ===== */
.share-steps {
    margin: 2rem 0;
    border-top: 2px solid #e2e8f0;
    padding-top: 2rem;
}

.share-steps h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-steps h4::before {
    content: "2";
    display: inline-flex;
    width: 32px;
    height: 32px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

.share-option.primary {
    background: #f7fafc;
    border: 2px solid #4299e1;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.share-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.recommended-badge {
    background: #48bb78;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.share-option label {
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.share-link-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.share-link-input {
    flex: 1;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', monospace;
    font-size: 0.9rem;
    background: white;
    color: #2d3748;
}

.share-link-input:focus {
    outline: none;
    border-color: #4299e1;
}

.share-description {
    color: #718096;
    font-size: 0.875rem;
    margin: 0;
    font-style: italic;
}

.share-option.secondary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.share-alternatives {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.alt-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.alt-method label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
}

.room-code-text {
    font-family: 'Inter', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
}

.qr-mini img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

/* Start Call Section */
.start-call-section {
    margin: 2.5rem 0;
    border-top: 2px solid #e2e8f0;
    padding-top: 2rem;
    text-align: center;
}

.start-call-section h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.start-call-section h4::before {
    content: "3";
    display: inline-flex;
    width: 32px;
    height: 32px;
    background: #48bb78;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

.call-info {
    color: #718096;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-prominent {
    font-size: 1.125rem !important;
    padding: 1rem 2.5rem !important;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4) !important;
}

.btn-prominent:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6) !important;
}

.btn-small {
    padding: 0.5rem 1rem !important;
    font-size: 0.75rem !important;
    margin-top: 0.5rem;
}

/* ===== CONNECTION STATUS ===== */
.connection-status-container {
    margin: 1.5rem 0;
}

.connection-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.connection-status-item:last-child {
    border-bottom: none;
}

.status-label {
    font-weight: 500;
    color: #4a5568;
}

.status-value {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.status-value.connecting {
    background: #fef5e7;
    color: #d69e2e;
}

.status-value.connected {
    background: #f0fff4;
    color: #38a169;
}

.status-value.failed {
    background: #fff5f5;
    color: #e53e3e;
}

/* ===== ROOM INFO ===== */
.room-info {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #4a5568;
}

.info-value {
    font-weight: 600;
    color: #2d3748;
}

/* ===== BUTTONS ===== */
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    width: 100%;
}

.btn-secondary {
    background: #edf2f7;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #2d3748;
    border-color: #cbd5e0;
}

/* ===== INSTRUCTIONS ===== */
.instructions-card {
    background: #f0fff4;
    border-left: 4px solid #48bb78;
}

.instructions-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.instructions-card ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.instructions-card li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.security-note {
    background: #e6fffa;
    color: #38b2ac;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 1rem 0 0;
    border: 1px solid #b2f5ea;
}

/* ===== QR SCANNER ===== */
.qr-scanner-card {
    text-align: center;
    background: #fef5e7;
    border-left: 4px solid #d69e2e;
}

.qr-scanner-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

/* ===== CALL ROOM STYLES ===== */
.call-active {
    background: #1a202c;
    color: white;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

.call-room {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Share Banner */
.share-banner {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.share-banner-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.share-link-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.share-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #2d3748;
    font-size: 0.85rem;
    font-family: 'Inter', monospace;
}

.share-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: white;
}

.call-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Call Header */
.call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.call-info .call-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.room-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: transparent;
    padding: 0;
    margin: 0;
}

.room-code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    color: #e2e8f0;
    background: transparent;
    padding: 0;
    border: none;
    margin: 0;
}

.encryption-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(72, 187, 120, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #9ae6b4;
}

/* Call Status */
.call-status {
    text-align: right;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.connecting {
    background: #f6ad55;
}

.status-dot.connected {
    background: #48bb78;
}

.status-dot.failed {
    background: #f56565;
}

.status-dot.reconnecting {
    background: #4299e1;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 0.875rem;
    color: #e2e8f0;
}

.call-timer {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

/* Call Content */
.call-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Connection Card */
.connection-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 500px;
    width: 100%;
}

.connection-status {
    margin-bottom: 2rem;
}

.connection-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.connection-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.connection-card p {
    color: #e2e8f0;
    font-size: 1rem;
}

/* Progress Bar */
.connection-progress {
    margin-top: 2rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78, #38a169);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
    color: #48bb78;
}

.step.completed {
    opacity: 1;
    color: #68d391;
}

.step-icon {
    font-size: 1.5rem;
}

.step-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Active Call */
.active-call {
    width: 100%;
    max-width: 600px;
}

.call-participants {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.participant {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.participant-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.participant-icon {
    font-size: 2rem;
    color: #e2e8f0;
}

.participant-name {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.participant-status {
    display: block;
    font-size: 0.875rem;
    color: #a0aec0;
}

/* Audio Indicator */
.audio-indicator {
    margin-top: 1rem;
}

.audio-bars {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 2px;
    height: 20px;
}

.bar {
    width: 3px;
    background: #4a5568;
    border-radius: 2px;
    transition: all 0.1s ease;
}

.bar:nth-child(1) { height: 4px; }
.bar:nth-child(2) { height: 8px; }
.bar:nth-child(3) { height: 12px; }
.bar:nth-child(4) { height: 8px; }

.bar.active {
    background: #48bb78;
}

/* Call Controls */
.call-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.control-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mute-btn,
.speaker-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.mute-btn:hover,
.speaker-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.mute-btn.active,
.speaker-btn.active {
    background: #f56565;
    color: white;
}

.end-call-btn {
    background: #f56565;
    color: white;
}

.end-call-btn:hover {
    background: #e53e3e;
    transform: scale(1.05);
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-label {
    font-size: 0.625rem;
}

/* Call Actions */
.call-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
}

.action-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Call Stats */
.call-stats {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.call-stats h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #a0aec0;
    font-size: 0.875rem;
}

.stat-value {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.toggle-stats {
    width: 100%;
    margin-top: 1rem;
    padding: 0.5rem;
    background: transparent;
    color: #a0aec0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-stats:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Overlays */
.error-overlay,
.call-ended-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.error-content,
.call-ended-content {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    color: #2d3748;
}

.error-icon,
.call-ended-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-content h2,
.call-ended-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.error-content p,
.call-ended-content p {
    color: #718096;
    margin-bottom: 2rem;
}

.error-actions,
.call-ended-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.call-ended-stats {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.call-ended-stats .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.call-ended-stats .stat-label {
    color: #4a5568;
}

.call-ended-stats .stat-value {
    font-weight: 600;
    color: #2d3748;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .call-page {
        padding: 100px 0 1rem;
    }
    
    .call-container {
        padding: 0 1rem;
    }
    
    .call-header h1 {
        font-size: 2rem;
    }
    
    .room-card,
    .permission-card,
    .warning-card,
    .error-card,
    .instructions-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .room-code {
        font-size: 1.5rem;
        padding: 0.75rem 1.5rem;
    }
    
    .room-code-input-container {
        flex-direction: column;
    }
    
    .share-link-container {
        flex-direction: column;
    }
    
    /* Call Room Mobile */
    .call-room .call-container {
        padding: 1rem;
    }
    
    .share-banner {
        padding: 0.75rem;
    }
    
    .share-banner-content {
        gap: 0.5rem;
    }
    
    .share-link-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .share-input {
        width: 100%;
    }
    
    .call-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .room-info {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .connection-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }
    
    .connection-card h2 {
        font-size: 1.5rem;
    }
    
    .call-participants {
        flex-direction: column;
        gap: 1rem;
    }
    
    .control-btn {
        width: 60px;
        height: 60px;
        font-size: 0.625rem;
    }
    
    .btn-icon {
        font-size: 1.25rem;
    }
    
    .call-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .error-content,
    .call-ended-content {
        padding: 2rem 1.5rem;
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.room-card,
.permission-card,
.connection-card,
.active-call {
    animation: fadeIn 0.5s ease;
}

.progress-steps .step {
    animation: slideIn 0.5s ease;
}

.progress-steps .step:nth-child(2) {
    animation-delay: 0.1s;
}

.progress-steps .step:nth-child(3) {
    animation-delay: 0.2s;
}

/* ===== MOBILE APP BANNER ===== */
.mobile-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.banner-text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.banner-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
}

.banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

.banner-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.banner-close:hover {
    opacity: 1;
}

/* ===== ROOM INFO DISPLAY ===== */
.room-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.room-info-card .room-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.room-info-card .status-icon {
    font-size: 2rem;
}

.room-info-card .status-text h3 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
}

.room-info-card .status-text p {
    margin: 0;
    color: #718096;
    font-size: 1rem;
}

/* ===== RESPONSIVE MOBILE BANNER ===== */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .banner-actions {
        width: 100%;
        justify-content: center;
    }
    
    .btn-small {
        flex: 1;
        max-width: 120px;
    }
    
    .room-info-card .room-status {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .room-info-card .status-text h3 {
        font-size: 1.25rem;
    }
}