﻿/* styles.css - Layout moderno e responsive per Programmazioni Didattiche */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f6f8;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

header h1 {
    font-size: 1.8rem;
    color: #1a73e8;
}

nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #1a73e8;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

h2 {
    margin-top: 30px;
    color: #1a73e8;
}

form {
    display: flex;
    flex-direction: column;
	padding: 0 1px;
}

form.public {
    display: grid;
    grid-template-columns: auto auto auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
	padding: 0 1px;
}

form label {
    margin-top: 10px;
    font-weight: 600;
}

form input[type=text], form input[type=email], form input[type=password], form select, form input[type=file] {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

form button {
    margin-top: 20px;
    padding: 12px;
    border: none;
    background: #1a73e8;
    color: #fff;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: #155ab6;
}

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: #e8f0fe;
    color: #1a73e8;
}

table tr:hover {
    background: #f1f3f4;
}

.error {
    padding: 10px;
    background: #ffcccc;
    color: #a70000;
    border-radius: 6px;
    margin-bottom: 15px;
}

.success {
    padding: 10px;
    background: #ccffcc;
    color: #006600;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav a {
        margin: 5px 0;
    }

    table th, table td {
        font-size: 0.9rem;
        padding: 8px;
    }

    form input, form select, form button {
        font-size: 0.9rem;
    }
}