/* style.css (ΤΕΛΙΚΗ ΕΚΔΟΣΗ – ΣΤΑΘΕΡΟ FOOTER) */

/* --- Γενικές Ρυθμίσεις --- */
:root {
    --primary-color: #03a9f4; /* Φωτεινό Γαλάζιο */
    --secondary-color: #ff5722; /* Έντονο Πορτοκαλί (για δράση) */
    --background-color: #e3f2fd; /* Πολύ απαλό Γαλάζιο background */
    --card-background: #ffffff;
    --text-color: #212121;
    --light-text-color: #757575;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

/* --- Login & Container --- */
.container, .login-box {
    width: 90%;
    max-width: 450px;
    padding: 40px;
    background-color: var(--card-background);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-align: center;
}

/* --- Τυπογραφία & Κεφαλίδες --- */
h1 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2.5em;
}

h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* --- Buttons / Forms --- */
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

.btn {
    width: 100%;
    padding: 14px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.1s;
}

.btn:hover {
    background-color: #0288d1;
    transform: translateY(-2px);
}

.error-message {
    color: #f44336;
    margin-top: 15px;
    font-weight: bold;
    display: none;
}

/* --- Header / Πλοήγηση --- */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0; 
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
}

.nav-item {
    position: relative; 
    margin: 0 15px;
}

.nav-links > li > a, .dropdown-content a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    padding: 12px 18px;
    display: block;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.nav-links > li > a:hover {
    background-color: #0288d1;
}

/* Dropdown Menu (Μαθήματα) */
.dropdown-content {
    display: none; 
    position: absolute;
    background-color: var(--primary-color);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
    z-index: 1;
    border-radius: 0 0 8px 8px; 
    top: 100%; 
    left: 0; 
    border-top: 3px solid var(--secondary-color);
}

.dropdown-content a {
    padding: 12px 16px;
    text-align: left;
    border-radius: 0; 
}

.dropdown-content a:hover {
    background-color: #0288d1;
}

.nav-item:hover .dropdown-content {
    display: block; 
}

.content-wrapper {
    max-width: 1100px; 
    width: 90%;
    margin-top: 90px;
    margin-bottom: 80px; /* ΚΡΙΣΙΜΟ: Χώρος για το σταθερό footer */
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* --- Πλαίσιο Ανακοινώσεων --- */
.announcement-box {
    margin-top: 35px;
    padding: 30px;
    background-color: #ffe0b2; 
    border: 3px solid var(--secondary-color);
    border-radius: 12px;
}

.announcement-box h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px dashed #ff9800;
    padding-bottom: 8px;
}

.announcement-box p {
    color: var(--text-color);
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid #ff9800;
}

/* --- Test/Subject Cards --- */
.test-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
    align-items: stretch; 
}

.subject-card {
    background-color: #fff; 
    padding: 25px;
    border-left: 5px solid var(--secondary-color); 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.subject-card h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 5px;
}

.subject-card p {
    color: var(--light-text-color);
    margin-bottom: 15px;
    font-size: 0.95em;
}

.subject-card a {
    display: inline-block; 
    width: auto;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.subject-card a:hover {
    background-color: #fb8c00;
}

/* --- FOOTER ΣΤΥΛ (ΜΟΝΟ ΚΕΙΜΕΝΟ & ΣΤΑΘΕΡΟ) --- */
.footer {
    width: 100%;
    color: #757575;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
    bottom: 0;
    left: 0;
    margin-top: -70px;
    margin-bottom: -60px;
    z-index: 1001; 
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* ΠΡΟΣΘΗΚΗ: Σπρώχνουμε το περιεχόμενο του body προς τα πάνω */
body:not(.login-page) {
    padding-bottom: 50px; /* Εξασφαλίζει ότι υπάρχει επιπλέον χώρος κάτω από το wrapper */
}