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

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Brand Header */
.brand-header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.brand-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #007bff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hamburger Menu */
.hamburger-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #007bff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 26px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 30px 20px 20px 20px;
}

.sidebar.open {
    left: 0;
}

.sidebar-content {
    margin-top: 60px;
}

/* Mode Buttons */
.mode-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: #e3f2fd;
    border: 2px solid #bbdefb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: left;
    color: #1976d2;
}

.mode-btn:hover {
    background: #bbdefb;
    border-color: #007bff;
    color: #0d47a1;
}

.mode-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mode Containers */
.mode-container {
    display: none;
}

.mode-container.active {
    display: block;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    padding-top: 5rem;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

.upload-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-area:hover {
    border-color: #666;
}

.upload-area img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.upload-area p {
    color: #666;
    margin-bottom: 1rem;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.primary-button {
    background-color: #007bff;
}

.secondary-button {
    background-color: #6c757d;
    margin-top: 1rem;
}

.secondary-button:hover {
    background-color: #545b62;
}

.preview-container {
    text-align: center;
}

#imagePreview {
    max-width: 100%;
    max-height: 400px;
    margin: 1rem 0;
    border-radius: 8px;
}

/* Video Controls */
.video-controls {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.video-controls button {
    margin: 0 0.5rem;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

#progressText {
    font-weight: bold;
    color: #333;
}

/* Analysis Results */
.analysis-result {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.analysis-result p {
    color: #333;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Timeline Results */
.timeline-results {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
}

.timeline-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid #007bff;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-item.critical {
    border-left-color: #dc3545;
}

.timeline-item.attention {
    border-left-color: #fd7e14;
}

.timeline-item.safe {
    border-left-color: #28a745;
}

.timeline-item.error {
    border-left-color: #6c757d;
    background: #f8f9fa;
}

.timeline-item[style*="cursor: pointer"]:hover {
    background: #f0f8ff;
    transform: translateX(2px);
    transition: all 0.2s ease;
}

.timeline-time {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 0.25rem;
}

.timeline-content {
    color: #666;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        padding-top: 4rem;
    }
    
    .sidebar {
        width: 280px;
    }
    
    .video-controls {
        flex-direction: column;
    }
    
    .video-controls button {
        width: 100%;
        margin: 0.25rem 0;
    }
} 