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

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff; /* Light background */
    color: #111111;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.mobile-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
}

/* --- Top Section --- */
.top-section {
    flex: 1.2;
    background: linear-gradient(145deg, #0b5cff 0%, #0b5cff 60%, #1e75ff 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.user-video-preview {
    position: absolute;
    top: 40px;
    right: 20px;
    width: 120px;
    height: 180px;
    background-color: #333333;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    cursor: grab;
    touch-action: none; /* Prevent scrolling when dragging on mobile */
    user-select: none;
    z-index: 100;
}

#camera-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    z-index: 1;
}

.user-video-preview.dragging {
    cursor: grabbing;
    opacity: 0.9;
    box-shadow: 0 15px 25px rgba(0,0,0,0.5);
}

.avatar-placeholder {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: #a0a0a5;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e0e0e0;
    position: relative;
    z-index: 2;
}

.controls-overlay {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    position: relative;
    z-index: 3;
}

.control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(30, 30, 30, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff453a;
}

/* Zoom Branding */
.zoom-branding {
    text-align: center;
    margin-top: 40px;
}

.logo h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 400;
}

.feature-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.feature-icons svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Bottom Section --- */
.bottom-section {
    flex: 1;
    padding: 30px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #111111;
}

.meeting-info {
    flex: 1;
}

.meeting-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.meeting-time {
    font-size: 14px;
    color: #666666;
    margin-bottom: 24px;
}

.host-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333333;
}

.spinner {
    width: 16px;
    height: 16px;
    animation: spin 1.5s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner svg {
    width: 100%;
    height: 100%;
    color: #666666;
}

.spin-path {
    opacity: 0.7;
}

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

.action-container {
    width: 100%;
}

.leave-btn {
    width: 100%;
    padding: 16px;
    background-color: #f2f2f7;
    color: #ff3b30;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.leave-btn:active {
    background-color: #e5e5ea;
}
