/* public/css/style.css */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    min-height: 100vh;
}

/* Landing Screen */
#landing-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
}

h1 {
    font-size: 3em;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 50px;
}

.actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 50px;
}

.action-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-card h3 {
    margin-bottom: 20px;
    font-size: 1.3em;
}

.divider {
    font-size: 1.5em;
    font-weight: bold;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.9);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-primary {
    background: #4ECDC4;
    color: white;
}

.btn-primary:hover {
    background: #45b8b0;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #FF6B6B;
    color: white;
}

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

.features {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
}

.feature {
    text-align: center;
}

.feature span {
    font-size: 3em;
    display: block;
    margin-bottom: 10px;
}

/* Meeting Room */
#meeting-room {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #1a1a2e;
}

.meeting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #16213e;
    border-bottom: 2px solid #4ECDC4;
}

.room-info h2 {
    margin-bottom: 5px;
}

.room-info p {
    font-size: 0.9em;
    opacity: 0.7;
}

.meeting-controls {
    display: flex;
    gap: 10px;
}

.meeting-controls .btn {
    width: auto;
    padding: 10px 20px;
    font-size: 0.9em;
}

.btn-danger {
    background: #ff4757;
}

.btn-danger:hover {
    background: #ff3838;
}

.btn-detection {
    background: #4ECDC4;
}

.btn-detection.active {
    background: #45b8b0;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

.video-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 15px;
    padding: 20px;
    overflow-y: auto;
}

.video-wrapper {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

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

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.video-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
}

.face-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(78, 205, 196, 0.9);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: bold;
}

.info-panel {
    padding: 15px 30px;
    background: rgba(78, 205, 196, 0.1);
    border-top: 2px solid #4ECDC4;
}

.info-panel p {
    margin: 5px 0;
    font-size: 0.9em;
}

#detectionStatus {
    color: #4ECDC4;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .actions {
        grid-template-columns: 1fr;
    }
    
    .divider {
        display: none;
    }
    
    .meeting-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .meeting-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .video-container {
        grid-template-columns: 1fr;
    }
}