/* Engineering section styles */

/* Login page */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form .form-group {
    margin-bottom: 15px;
}

.login-form label {
    margin-bottom: 5px;
    font-weight: bold;
}

.login-form input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-form button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.login-form button:hover {
    background-color: #0069d9;
}

.error-message {
    color: #dc3545;
    margin-top: 10px;
    display: none;
}

/* Engineering pages */
.engineering-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.engineering-header {
    margin-bottom: 30px;
}

.engineering-header h1 {
    margin-bottom: 10px;
}

.engineering-content {
    margin-bottom: 30px;
}

/* Gallery styles for pictures and drawings */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item .caption {
    padding: 10px;
    background-color: #f8f9fa;
}

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

.video-item {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.video-item video {
    width: 100%;
    height: auto;
    display: block;
}

.video-item .caption {
    padding: 10px;
    background-color: #f8f9fa;
}

/* Chat/Discussion styles */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    max-width: 80%;
}

.message.user {
    background-color: #007bff;
    color: white;
    margin-left: auto;
}

.message.other {
    background-color: #e9ecef;
    color: #212529;
}

.message .sender {
    font-weight: bold;
    margin-bottom: 5px;
}

.message .timestamp {
    font-size: 0.8em;
    color: #6c757d;
    text-align: right;
}

.chat-input {
    display: flex;
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

.chat-input button {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.chat-input button:hover {
    background-color: #0069d9;
}

/* Dark mode styles */
html.dark .login-container {
    background-color: #333;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

html.dark .login-form input {
    background-color: #444;
    border-color: #555;
    color: #fff;
}

html.dark .gallery-item .caption,
html.dark .video-item .caption {
    background-color: #333;
    color: #e0e0e0;
}

html.dark .chat-messages {
    background-color: #333;
}

html.dark .message.other {
    background-color: #444;
    color: #e0e0e0;
}

html.dark .chat-input {
    background-color: #333;
    border-top-color: #555;
}

html.dark .chat-input input {
    background-color: #444;
    border-color: #555;
    color: #fff;
}
