/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

header {
    margin-bottom: 20px;
}

h1, h2, h3 {
    font-weight: 600;
}

.age-verification-dialog {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 400px;
    text-align: center;
    margin: 100px auto;
}

.age-verification-dialog p {
    margin: 15px 0;
    font-size: 1.1em;
}

.age-verification-dialog label {
    display: block;
    margin: 20px 0;
    font-size: 0.95em;
    cursor: pointer;
}

.age-verification-dialog input[type="checkbox"] {
    margin-right: 10px;
}

.btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: #0056b3;
}

.user-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

.user-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.user-card:hover {
    transform: translateY(-5px);
}

.user-info h3 {
    margin-bottom: 10px;
    font-size: 1.3em;
}

.user-info p {
    margin-bottom: 6px;
    font-size: 1em;
}

.status {
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
    display: inline-block;
}

.status.available {
    background-color: #28a745;
}

.status.busy {
    background-color: #dc3545;
}

.status.offline {
    background-color: #6c757d;
}

.call-btn {
    margin-top: 15px;
    padding: 10px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.call-btn:hover {
    background-color: #0056b3;
}

.screen {
    max-width: 900px;
    margin: 50px auto;
    text-align: center;
}

.loader {
    margin: 20px auto;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.video-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

video#dummy-video {
    width: 100%;
    height: auto;
    display: block;
}

.camera-view {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 120px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.camera-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-info {
    text-align: center;
    margin-bottom: 20px;
}

.end-call-btn {
    display: inline-block;
    margin-top: 10px;
    background-color: #dc3545;
}

.end-call-btn:hover {
    background-color: #a71d2a;
}

/* Responsive */
@media (max-width: 600px) {
    .user-list {
        grid-template-columns: 1fr;
    }
    .camera-view {
        width: 90px;
        height: 68px;
        bottom: 10px;
        right: 10px;
    }
}
