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

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8fafc;
    color: #333;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header Navbar */
header {
    width: 100%;
    background-color: #1E293B;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    position: relative;
}

header .sidebar-toggle {
    position: absolute;
    left: 15px; 
    min-width: 120px; 
    max-width: 150px; 
    text-align: center;
    white-space: nowrap;
    background-color: #334155;
    color: white;
    padding: 8px 12px; 
    border: none;
    border-radius: 6px;
    font-size: 14px; 
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

/* Hover Effect */
header .sidebar-toggle:hover {
    background-color: #475569;
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Mobile Optimization */
@media (max-width: 400px) {
    header .sidebar-toggle {
        min-width: 90px;
        font-size: 12px;
        padding: 5px 8px;
    }
}

@media (max-width: 320px) {
    header .sidebar-toggle {
        min-width: 85px; 
        font-size: 11px; 
        padding: 4px 6px;
    }
}



.header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

header img {
    height: 40px;
}

/* Sidebar Navigation */
nav {
    position: fixed;
    top: 0;
    left: -250px;
    height: 100vh;
    width: 250px;
    background-color: #1E293B;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    transition: left 0.3s ease-in-out;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
}

nav.show {
    left: 0;
}

nav .nav-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

nav img {
    height: 30px;
}

nav h2 {
    font-size: 20px;
    font-weight: bold;
}

/* Sidebar Buttons */
nav button, nav a {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #334155;
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 10px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

nav button:hover, nav a:hover {
    background-color: #475569;
}

nav .linkedin-link {
    margin-top: 20px;
    color: #0077B5; 
    font-weight: 300;
    text-decoration: none; 
    background: none; 
    padding: 8px 0;
    border: none; 
    display: block;
    text-align: center;
    transition: color 0.2s ease-in-out;
}

nav .linkedin-link:hover {
    text-decoration: underline;
    color: #005582; 
}



/* Main Content */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Hide Sections Initially */
#upload-container, #video-container {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: white;
    max-width: 600px;
    width: 100%;
}

#upload-container.active, #video-container.active {
    display: flex;
}

/* Upload Form */
.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-form input[type="file"] {
    display: none;
}

.upload-title {
    margin-bottom: 15px; 
}

.upload-buttons {
    display: flex;
    gap: 15px; 
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%; 
    max-width: 400px; 
}

.custom-file-upload {
    background-color: #3B82F6;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

.custom-file-upload:hover {
    background-color: #2563EB;
}

.upload-buttons button {
    background-color: #3B82F6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.upload-buttons button:hover {
    background-color: #2563EB;
}



/* Emotion List */
.emotion-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    line-height: 1.6;
}

/* Video Controls */
.video-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.video-controls button {
    background-color: #3B82F6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.video-controls button:hover {
    background-color: #2563EB;
}

/* Styled Images */
.result-image, video {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}