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

:root {
    --primary-color: #6a5acd;
    --secondary-color: #9370db;
    --accent-color: #4b0082;
    --background-color: #f8f9fa;
    --text-color: #333;
    --card-bg: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

header p {
    color: var(--text-color);
    font-size: 1.2rem;
    opacity: 0.8;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-button {
    background-color: transparent;
    color: var(--text-color);
    padding: 12px 24px;
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab-button:hover {
    background-color: rgba(106, 90, 205, 0.1);
}

.tab-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

#drop-area, #video-drop-area {
    width: 100%;
    max-width: 600px;
    height: 300px;
    border: 3px dashed var(--secondary-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(106, 90, 205, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

#drop-area:hover, #video-drop-area:hover {
    background-color: rgba(106, 90, 205, 0.1);
    transform: scale(1.01);
}

#drop-area.highlight, #video-drop-area.highlight {
    border-color: var(--accent-color);
    background-color: rgba(106, 90, 205, 0.15);
}

#drop-area p, #video-drop-area p {
    margin: 0.5rem 0;
    color: var(--text-color);
}

#file-input, #video-file-input {
    display: none;
}

.upload-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
}

.upload-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#preview-container, #video-preview-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

#preview-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
    margin-bottom: 1rem;
}

#preview-video {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
    margin-bottom: 1rem;
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    margin: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#reset-button, #reset-video-button {
    background-color: #ff6b6b;
}

#reset-button:hover, #reset-video-button:hover {
    background-color: #ff5252;
}

#results-container, #video-results-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
}

#results-container h2, #video-results-container h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

#analysis-results, #video-analysis-results {
    line-height: 1.8;
}

.result-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(106, 90, 205, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.result-item h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.hidden {
    display: none;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(106, 90, 205, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    #drop-area, #video-drop-area {
        height: 200px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    #results-container, #video-results-container {
        padding: 1.5rem;
    }
    
    .tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Timeline styles */
.timeline {
    margin-top: 1rem;
}

.timeline-entry {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.timeline-timestamp {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-description {
    color: var(--text-color);
    line-height: 1.6;
}

.tag {
    background-color: rgba(106, 90, 205, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--secondary-color);
}

