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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Headers */
h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

h2 {
    margin-bottom: 20px;
    color: #34495e;
}

/* Authentication forms */
.auth-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.auth-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

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

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

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* Removed logout-btn class as it's replaced with nav-link */

/* Error and success messages */
.error {
    background-color: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.success {
    background-color: #27ae60;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* User dashboard */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid #3498db;
}

.nav-link:hover {
    background-color: #3498db;
    color: white;
}

.user-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.user-info p {
    margin: 10px 0;
}

/* Video section */
.video-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-item {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.video-item h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.video-item p {
    margin-bottom: 15px;
    color: #7f8c8d;
}

/* Activity log */
.activity-log {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.activity-log p {
    margin: 10px 0;
    color: #7f8c8d;
}

/* Password section */
.password-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
}

.password-section h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.password-section p {
    margin-bottom: 20px;
    color: #7f8c8d;
    line-height: 1.5;
}

/* Change password form styles */
.change-password-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.change-password-form h2 {
    margin-bottom: 25px;
    color: #2c3e50;
}

.change-password-form .form-group {
    margin-bottom: 20px;
}

.change-password-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #34495e;
}

.change-password-form .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.change-password-form .form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.change-password-form small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        align-items: center;
    }

    .header {
        flex-direction: column;
        gap: 15px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .password-section, .change-password-form {
        padding: 20px;
    }

    /* Upload form styles */
    .upload-form-container {
        background: white;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin-bottom: 30px;
    }

    .upload-form-container h2 {
        margin-bottom: 25px;
        color: #2c3e50;
    }

    .upload-form-container .form-group {
        margin-bottom: 20px;
    }

    .upload-form-container .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
        color: #34495e;
    }

    .upload-form-container .form-group input[type="text"],
    .upload-form-container .form-group input[type="file"] {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 16px;
        transition: border-color 0.3s;
    }

    .upload-form-container .form-group input:focus {
        outline: none;
        border-color: #3498db;
    }

    .upload-form-container small {
        display: block;
        margin-top: 5px;
        color: #7f8c8d;
        font-size: 14px;
    }

    /* Upload tips section */
    .upload-tips {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 10px;
        border-left: 4px solid #3498db;
    }

    .upload-tips h3 {
        margin-bottom: 15px;
        color: #2c3e50;
    }

    .upload-tips ul {
        padding-left: 20px;
    }

    .upload-tips li {
        margin-bottom: 8px;
        color: #555;
    }

    /* File input styling */
    input[type="file"] {
        cursor: pointer;
    }

    input[type="file"]::-webkit-file-upload-button {
        background-color: #3498db;
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 4px;
        cursor: pointer;
        margin-right: 10px;
    }

    input[type="file"]::-webkit-file-upload-button:hover {
        background-color: #2980b9;
    }
}