/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

/* Main Container */
.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Header */
.main-header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header .logo {
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    color: #ecf0f1;
}

.main-header nav {
    display: flex;
    align-items: center;
}

.main-header nav span {
    margin-right: 20px;
}

.main-header nav a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: 1px solid transparent;
}

.main-header nav a:hover {
    background-color: #34495e;
}

/* Forms */
form {
    margin-top: 20px;
    max-width: 700px;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form input[type="email"],
form input[type="password"],
form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Important */
    margin-bottom: 15px;
    font-size: 1em;
}

form button[type="submit"] {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* General Typography & Elements */
h1, h2 {
    color: #2c3e50;
    border-bottom: 2px solid #eaecee;
    padding-bottom: 10px;
    margin-top: 0;
}

.error-message {
    color: #e74c3c;
    background-color: #fbeaea;
    border: 1px solid #e74c3c;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success-message {
    color: #27ae60;
    background-color: #eafaf1;
    border: 1px solid #27ae60;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108,117,125,0.3);
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255,193,7,0.3);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220,53,69,0.3);
}

/* Forms */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 200px;
    margin-right: 20px;
}

.form-group:last-child {
    margin-right: 0;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Messages */
.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

table tr:hover {
    background-color: #f9f9f9;
}

/* Commission Selection */
.commission-list {
    list-style: none;
    padding: 0;
}

.commission-list li {
    margin-bottom: 10px;
}

.btn-commission {
    width: 100%;
    background-color: #fff;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
    padding: 15px;
    text-align: left;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-commission:hover {
    background-color: #ecf0f1;
    border-color: #95a5a6;
    transform: translateX(5px);
}

.btn-commission::after {
    content: '→';
    font-weight: bold;
    color: #3498db;
}

/* Secretary Section */
.secretary-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}