:root {
    --primary-color: #4361ee;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --success-color: #4cc9f0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.app-header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.app-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
}

.app-header i {
    margin-right: 10px;
    color: var(--primary-color);
}

.app-main {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.controls-panel {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 350px;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.control-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.control-slider {
    width: 100%;
    margin-top: 5px;
}

.camera-options {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    margin-top: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #3a56d4;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #e5177b;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background-color: #e68a19;
}

.preview-container {
    flex: 2;
    position: relative;
}

.preview-wrapper {
    background-color: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

#preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

.camera-preview {
    position: absolute;
    width: 20%;
    aspect-ratio: 4/3;
    background-color: #333;
    border: 2px solid white;
    border-radius: 4px;
    overflow: hidden;
    bottom: 10px;
    right: 10px;
}

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

.recording-timer {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1.1rem;
    z-index: 10;
    display: none;
}

.recordings-list {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.recordings-list h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.no-recordings {
    text-align: center;
    padding: 20px;
    color: #666;
}

.recording-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.recording-item:last-child {
    border-bottom: none;
}

.recording-item video {
    width: 120px;
    border-radius: 4px;
}

.recording-info {
    flex: 1;
    padding: 0 15px;
}

.recording-info h4 {
    margin-bottom: 5px;
}

.recording-info p {
    color: #666;
    font-size: 0.9rem;
}

.recording-actions {
    display: flex;
    gap: 10px;
}

.recording-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .app-main {
        flex-direction: column;
    }

    .controls-panel {
        max-width: 100%;
    }
}