/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    background-color: #f4f6f9;
    margin: 0;
    color: #2c3e50;
}

h1, h2 {
    font-weight: 600;
    color: #34495e;
}

.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 20px;
    height:800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

.sidebar ul li {
    margin: 15px 0;
    padding: 10px;
    transition: 0.3s;
}

.sidebar ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.sidebar ul li:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.main-content {
    flex: 2;
    padding: 20px;
}

.main-content h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.main-content p {
    font-size: 16px;
    line-height: 1.6;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.top-nav a {
    text-decoration: none;
    color: #2b3f5c;
    background: white;
    padding: 10px 15px;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: bold;
}

.top-nav a.active, 
.top-nav a:hover {
    background: #ff8800;
    color: white;
}

.progress-section, .daily-progress, .weekly-progress, .challenge-section, .rank-section {
    background: white;
    padding: 20px;
    margin: 10px 0;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.progress-section:hover, .daily-progress:hover, .weekly-progress:hover, .challenge-section:hover, .rank-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Right Panel */
.right-panel {
    width: 300px;
    background: #ffffff;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid #ecf0f1;
}

.start-recording {
    background: #ff6600;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.start-recording:hover {
    background: #e65c00;
}

/* Colors for Different Posture Stats */
.good { color: green; font-weight: bold; }
.moderate { color: blue; font-weight: bold; }
.bad { color: red; font-weight: bold; }

/* Charts */
canvas {
    max-width: 100%;
    border-radius: 8px;
}

/* Login/Register Page */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #ecf0f1;
}

.auth-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 350px;
    text-align: center;
}

.auth-box h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.auth-box input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #bdc3c7;
}

.button-group {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.button-group button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.auth-box button {
    width: 100%;
    padding: 10px;
    border: none;
    background: #3498db;
    color: white;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.auth-box button:hover {
    background: #2980b9;
}


/* Video Section */
video {
    display: block;
    margin: 20px auto;
    width: 40%;
    height: 43.2%;
    max-height: 400px;
    border-radius: 10px;
    border: 3px solid #2b3f5c;
}

@media screen and (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
    }

    .top-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    video {
        width: 90%;
    }
}