/* style.css */

/* --- General & Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Roboto:wght@300;400;500&display=swap');

body {
    background-color: #f4f4f4;
    color: #333;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px 40px;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    border-top: 5px solid #0033a0; /* Chilean Gov Blue */
}

h1, h2, h3 {
    font-family: 'Libre Baskerville', serif;
    color: #222;
    font-weight: 700;
}

h1 { font-size: 2.2em; text-align: center; margin-bottom: 0.2em; }
.subtitle { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 1.2em; text-align: center; color: #555; margin-top: 0; margin-bottom: 2em; }
p, li { font-size: 1.1em; text-align: justify; }
a { color: #0056b3; text-decoration: none; }
a:hover { text-decoration: underline; }
hr { border: 0; height: 1px; background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0)); margin: 40px 0; }

/* --- Header & Footer Logos --- */
.header-logos, .footer-logos { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; }
.header-logos img, .footer-logos img { max-height: 80px; width: auto; object-fit: contain; margin: 10px; }
.header-main-logo { display: block; margin: 0 auto 20px auto; max-height: 120px; }

/* --- Schedule Table --- */
.schedule-table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 1em; }
.schedule-table th, .schedule-table td { border: 1px solid #ddd; padding: 12px; text-align: left; }
.schedule-table th { background-color: #f2f2f2; font-family: 'Libre Baskerville', serif; font-weight: 700; }
.schedule-table tr:nth-child(even) { background-color: #f9f9f9; }

/* --- Form Styling --- */
.form-container { background-color: #fdfdfd; padding: 30px; border: 1px solid #e0e0e0; border-radius: 5px; margin-top: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; color: #444; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="password"], .form-group input[type="number"], .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 1em; font-family: 'Roboto', sans-serif; }
.form-group textarea { resize: vertical; min-height: 100px; }
.radio-group { margin-top: 10px; }
.radio-group input[type="radio"] { vertical-align: middle; margin-right: 4px; }
.radio-group label { font-weight: normal; margin-right: 20px; display: inline-block; vertical-align: middle; margin-bottom: 0; }
.conditional-input { display: none; margin-top: 15px; }
.conditional-input label { font-style: italic; color: #666; }
.submit-btn { background-color: #004494; color: white; padding: 15px 30px; border: none; border-radius: 5px; cursor: pointer; font-size: 1.1em; font-weight: 500; width: 100%; transition: background-color 0.3s ease; }
.submit-btn:hover { background-color: #0033a0; }

.form-disclaimer {
    font-size: 0.9em;
    font-style: italic;
    color: #555;
    text-align: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

/* --- Messages --- */
.message { padding: 20px; margin: 20px 0; border-radius: 5px; font-size: 1.1em; text-align: center; }
.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* --- Admin Panel --- */
.admin-container { max-width: 1200px; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.9em; }
.admin-table th, .admin-table td { border: 1px solid #ddd; padding: 8px; }
.admin-table th { background-color: #343a40; color: white; position: sticky; top: 0; }
.table-wrapper { max-height: 70vh; overflow-y: auto; overflow-x: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; }
.export-btn { background-color: #28a745; color: white; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; }
.logout-btn { background-color: #dc3545; color: white; padding: 5px 10px; border-radius: 5px; text-decoration: none; }
.login-form { max-width: 400px; margin: 100px auto; padding: 40px; background: white; border-radius: 5px; box-shadow: 0 0 10px rgba(0,0,0,0.1); }

/* --- Responsive & Logo Fixes --- */
@media (max-width: 768px) {
    .container { padding: 15px 20px; }
    h1 { font-size: 1.8em; }
    .subtitle { font-size: 1.1em; }
    .header-logos, .footer-logos { flex-direction: column; }
}
.header-logos img:first-child { max-height: 110px; }

/* --- NEW STYLES FOR FINAL REQUEST --- */

/* Stylized box for the instructor's bio */
.info-box {
    background-color: #f8f9fa;
    border-left: 4px solid #0056b3;
    padding: 15px 25px;
    margin: 40px 0;
    border-radius: 0 4px 4px 0;
}
.info-box h3 {
    margin-top: 0;
    color: #0033a0;
}
.info-box p {
    font-size: 1.05em;
    line-height: 1.7;
}

/* Rule to make the new SENADIS logo in the footer larger */
.footer-logos .logo-senadis {
    max-height: 100px;
}