/* ===== RESET & BASE ===== */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f0f2f5; color: #1a1a2e; line-height: 1.6; } /* ===== CONTAINER ===== */ .container { max-width: 960px; margin: 0 auto; padding: 20px; } /* ===== HEADER ===== */ header { text-align: center; margin-bottom: 30px; padding: 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px; color: white; } header h1 { font-size: 2rem; margin-bottom: 5px; } .subtitle { opacity: 0.9; font-size: 1rem; } /* ===== NAVIGAZIONE ===== */ .navigation { margin-top: 15px; display: flex; justify-content: center; gap: 12px; } .nav-link { color: white; text-decoration: none; padding: 8px 20px; border-radius: 20px; border: 2px solid rgba(255, 255, 255, 0.4); transition: all 0.3s; font-weight: 500; } .nav-link:hover { background: rgba(255, 255, 255, 0.2); border-color: white; } .nav-link.active { background: rgba(255, 255, 255, 0.25); border-color: white; } /* ===== FILTRI ===== */ .filters-section { display: flex; gap: 12px; margin-bottom: 20px; } .search-bar { flex: 1; padding: 10px 16px; border: 2px solid #ddd; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s; } .search-bar:focus { border-color: #667eea; outline: none; } .filter-select { padding: 10px 16px; border: 2px solid #ddd; border-radius: 8px; font-size: 1rem; background: white; cursor: pointer; min-width: 200px; } .filter-select:focus { border-color: #667eea; outline: none; } /* ===== FORM ===== */ .form-section { background: white; padding: 24px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); } .form-section h2 { margin-bottom: 16px; color: #333; } .form-group { margin-bottom: 14px; } .form-group label { display: block; margin-bottom: 4px; font-weight: 600; color: #555; font-size: 0.9rem; } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 14px; border: 2px solid #ddd; border-radius: 8px; font-size: 1rem; font-family: inherit; transition: border-color 0.3s; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #667eea; outline: none; } .error-msg { color: #e74c3c; font-size: 0.85rem; margin-top: 4px; display: block; min-height: 1.2em; } /* ===== BOTTONI ===== */ .btn { padding: 10px 20px; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; transition: all 0.3s; font-weight: 600; } .btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; } .btn-primary:hover { opacity: 0.9; transform: translateY(-1px); } .btn-delete { background: #e74c3c; color: white; border: none; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; } .btn-delete:hover { background: #c0392b; } /* ===== TABELLA ===== */ .table-section { background: white; padding: 24px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); margin-bottom: 20px; } .table-section h2 { margin-bottom: 16px; color: #333; } table { width: 100%; border-collapse: collapse; } thead th { background: #f8f9fa; padding: 12px 10px; text-align: left; font-weight: 600; color: #555; border-bottom: 2px solid #e0e0e0; font-size: 0.9rem; } tbody tr { border-bottom: 1px solid #eee; transition: background 0.2s; } tbody tr:hover { background: #f8f9ff; } tbody td { padding: 12px 10px; font-size: 0.95rem; } .truncated { color: #777; font-size: 0.9rem; } /* ===== MESSAGGI ===== */ .message { padding: 14px 20px; border-radius: 8px; text-align: center; font-weight: 500; margin: 10px 0; } .message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; } .message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } .nascosto { display: none; } /* ===== RESPONSIVE ===== */ @media (max-width: 768px) { .filters-section { flex-direction: column; } .filter-select { min-width: 100%; } table { font-size: 0.85rem; } thead th, tbody td { padding: 8px 6px; } .navigation { flex-direction: column; align-items: center; } }