/* Γενικές Ρυθμίσεις */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f4f8;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

h1 {
    color: #1e3a8a;
}

/* Κεντρική Διάταξη */
.container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 40px;
    text-align: center;
    width: 50%; /* Αλλαγή από 350px σε 50% */
    min-width: 600px; /* Ελάχιστο πλάτος για μικρές οθόνες */
    animation: fadeIn 0.8s ease-in-out;
}

.hidden {
    display: none;
}

/* Φόρμες */
.form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, select, button {
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
}

input, select {
    margin-bottom: 10px;
}

input:focus, select:focus {
    border-color: #1e3a8a;
}

button {
    background-color: #1e3a8a;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #163a70;
}

#documentsList {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 0;
    list-style: none;
}

.document-item {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    padding: 10px 20px;
    width: 150px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.document-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.document-item p {
    font-size: 14px;
    color: #1e3a8a;
    margin-bottom: 10px;
    text-align: center;
}

.document-item button {
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.document-item button:hover {
    background-color: #d1d5db;
}

.document-item button:nth-child(3) { /* Κουμπί διαγραφής */
    background-color: #e63946;
    color: white;
}

.document-item button:nth-child(3):hover {
    background-color: #c92a36;
}

#userListTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: left;
}

#userListTable th, #userListTable td {
    padding: 10px;
    border: 1px solid #d1d5db;
}

#userListTable th {
    background-color: #1e3a8a;
    color: white;
    font-weight: bold;
}

#userListTable tbody tr:nth-child(odd) {
    background-color: #f9fafb;
}

#userListTable button {
    padding: 5px 10px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#userListTable button:hover {
    background-color: #d1d5db;
}

#userListTable button:nth-child(2) {
    background-color: #e63946;
    color: white;
}

#userListTable button:nth-child(2):hover {
    background-color: #c92a36;
}

/* Στυλ Πεδίων Βαθμών */
.grade-field {
    margin-bottom: 15px; 
    text-align: left;    /* Για να ευθυγραμμιστεί το label με το input */
    display: flex;
    align-items: center; /* Κάθετη στοίχιση */
    justify-content: space-between; /* Χώρισμα label - input */
}

.grade-field input {
    width: 100px;
    text-align: center;
}

.grade-field label {
    font-weight: bold;
    color: #1e3a8a;
    margin-right: 10px;
    flex: 1;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        width: 80%; /* Προσαρμογή για κινητά/μικρές οθόνες */
        min-width: unset; /* Κατάργηση του ελάχιστου πλάτους */
    }
}

/* Προαιρετικό: Μικρό styling για τα πεδία προφίλ */
.profile-field {
    margin: 10px 0;
    text-align: left;
    font-size: 1rem;
}
.profile-field strong {
    display: inline-block;
    width: 100px; /* Μικρό σταθερό πλάτος για να ξεχωρίζει το label */
    color: #1e3a8a;
}