/* ============================================
   GLOBAL STYLES
   ============================================ */
body {
    background-color: #FAFAFA;
    color: #1a1a2b;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.airy-card {
    background: #FFFFFF;
    box-shadow: 0 2px 12px rgba(26, 26, 43, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.airy-card:hover {
    box-shadow: 0 8px 24px rgba(26, 26, 43, 0.08);
    transform: translateY(-2px);
}

.primary-gradient {
    background: linear-gradient(135deg, #0059bb 0%, #5400c3 100%);
}
.primary-gradient:hover {
    opacity: 0.9;
}

/* Page Transitions */
.page {
    display: none;
    animation: fadeIn 0.4s ease;
}
.page.active {
    display: block;
}

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

/* Pulse Animation */
.pulse-soft {
    animation: pulse-soft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.98); }
}

/* Success Animation */
.success-animation {
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Room Code Boxes */
.code-box {
    width: 48px;
    height: 64px;
    background: #f5f2ff;
    border: 2px solid #c1c6d7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #1a1a2b;
    transition: all 0.3s ease;
}
.code-box.filled {
    border-color: #0059bb;
    background: white;
}
.code-box:focus {
    outline: none;
    border-color: #0059bb;
    box-shadow: 0 0 0 3px rgba(0, 89, 187, 0.15);
}

/* File Drop Zone */
.drop-zone {
    border: 2px dashed #c1c6d7;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.drop-zone:hover {
    border-color: #0059bb;
    background: #f5f2ff;
}
.drop-zone.drag-over {
    border-color: #0059bb;
    background: #e3f2fd;
}

/* File Item */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f5f2ff;
    border-radius: 8px;
    margin: 4px 0;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e3e0f8;
    border-radius: 9999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #0059bb 0%, #5400c3 100%);
    border-radius: 9999px;
    transition: width 0.4s ease;
    width: 0%;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    z-index: 9999;
    max-width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.toast.success { background: #4caf50; color: white; }
.toast.error { background: #f44336; color: white; }
.toast.info { background: #2196f3; color: white; }

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 500;
}
.status-indicator.waiting {
    background: #fff3e0;
    color: #e65100;
}
.status-indicator.connected {
    background: #e8f5e9;
    color: #2e7d32;
}
.status-indicator.transferring {
    background: #e3f2fd;
    color: #0059bb;
}
.status-indicator.error {
    background: #ffebee;
    color: #c62828;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}
.status-dot.waiting { background: #ff9800; }
.status-dot.connected { background: #4caf50; }
.status-dot.transferring { background: #2196f3; }
.status-dot.error { background: #f44336; }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Chat Animation */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-slideIn {
    animation: slideIn 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #f5f2ff; border-radius: 9999px; }
::-webkit-scrollbar-thumb { background: #c1c6d7; border-radius: 9999px; }

/* Hide pages by default */
.page { display: none; }
.page.active { display: block; }

/* Responsive Code Boxes */
@media (max-width: 480px) {
    .code-box {
        width: 36px;
        height: 50px;
        font-size: 20px;
    }
}