/* css/style.css */
/* Questo file contiene tutti gli stili CSS per ComunitApp. */

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f0f2f5; /* Sfondo leggero */
    color: #333;
}
header {
    background-color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .logo {
    height: 80px;
    margin-right: 15px;
    width: auto;
    
}
header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}
main {
    flex-grow: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.content-frame {
    flex-grow: 1;
    width: 100%;
    border: none;
    overflow-y: auto;
    padding-bottom: 70px;
}
footer {
    background-color: #0085b2;
    /*background-color: #333;*/
    color: white;
    padding: 0.8rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}
.footer-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 8px;
}
.footer-icon:hover, .footer-icon.active {
    /*background-color: #000;*/
    color: #000000; 
}
.footer-icon i {
    font-size: 2rem;
    margin-bottom: 5px;
}
.page-content {
    padding: 1.5rem;
    max-width: 800px;
    min-width: 70%;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.request-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.request-card h3 {
    margin-top: 0;
    color: #0085b2; /* Cambiato a #0085b2 */
    font-size: 1.3rem;
    font-weight: 600;
}
.request-card p {
    margin: 0.4rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}
.request-card strong {
    color: #555;
}
.delete-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}
.delete-btn:hover {
    background-color: #d32f2f;
}
.add-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}
.add-form input[type="text"],
.add-form input[type="email"],
.add-form input[type="tel"],
.add-form input[type="date"],
.add-form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
}
.add-form button {
    background-color: #0085b2; /* Cambiato a #0085b2 */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.add-form button:hover {
    background-color: #00739a; /* Un tono più scuro di #0085b2 */
}
.message-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0085b2; /* Cambiato a #0085b2 */
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.message-box.show {
    opacity: 1;
}
