* {
    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%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.content {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.camera-section,
.info-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.camera-section {
    flex: 1;
    min-width: 0;
}

.info-section {
    flex: 0 0 400px;
}

h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

#video-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.no-camera {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.5em;
    background: #1a1a1a;
}

.info-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.label {
    font-weight: bold;
    color: #495057;
    flex: 0 0 120px;
}

.value {
    color: #212529;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

#status {
    font-weight: bold;
    font-size: 1.1em;
}

.control-section {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.start-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px 80px;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.start-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.start-btn.stop {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Responsive Design */
@media (max-width: 968px) {
    .content {
        flex-direction: column;
    }

    .info-section {
        flex: 1;
    }

    h1 {
        font-size: 2em;
    }

    .start-btn {
        padding: 15px 60px;
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    .label {
        flex: 0 0 100px;
        font-size: 0.9em;
    }

    .value {
        font-size: 0.9em;
    }

    .start-btn {
        padding: 12px 40px;
        font-size: 1em;
    }
}
