@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Roboto:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
}

h1 {
    font-weight: 300;
    letter-spacing: -0.5px;
}

h2, h3 {
    font-weight: 400;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

nav {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    margin-bottom: 30px;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B1538;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #8B1538;
}

h1, h2, h3 {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    color: #111827;
    margin-bottom: 20px;
}

h1 { font-size: 1.875rem; font-weight: 300; }
h2 { font-size: 1.5rem; font-weight: 300; }
h3 { font-size: 1.25rem; font-weight: 400; }

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calendar-nav a {
    background: #f3f4f6;
    color: #374151;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.calendar-nav a:hover {
    background: #e5e7eb;
}

.calendar-nav .month-year {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    min-width: 200px;
    text-align: center;
}

.filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filters select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.calendar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-header-row {
    display: contents;
}

.day-header {
    background: #f9fafb;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.day-cell {
    min-height: 120px;
    border: 1px solid #e5e7eb;
    padding: 8px;
    vertical-align: top;
}

.day-cell.empty {
    background: #f9fafb;
}

.day-cell.today {
    background: #eff6ff;
}

.day-number {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-number .add-visit {
    font-size: 1.2rem;
    color: #9ca3af;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.day-cell:hover .add-visit {
    opacity: 1;
}

.day-number .add-visit:hover {
    color: #2563eb;
}

.visit {
    padding: 6px 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: transform 0.1s;
}

.visit:hover {
    transform: translateX(2px);
}

.visit a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.visit.pianificata {
    background: #dbeafe;
    border-left: 3px solid #2563eb;
    color: #1e40af;
}

.visit.effettuata {
    background: #dcfce7;
    border-left: 3px solid #16a34a;
    color: #166534;
}

.visit.annullata {
    background: #f3f4f6;
    border-left: 3px solid #9ca3af;
    color: #6b7280;
    text-decoration: line-through;
}

.visit-type {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.7;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-primary {
    background: #8B1538;
    color: white;
}

.btn-primary:hover {
    background: #6d1029;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.btn-danger:hover {
    background: #fecaca;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B1538;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
}

.table-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f9fafb;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
}

tr:hover {
    background: #f9fafb;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-attivo {
    background: #dcfce7;
    color: #166534;
}

.badge-inattivo {
    background: #fee2e2;
    color: #dc2626;
}

.badge-freddo {
    background: #dbeafe;
    color: #1e40af;
}

.badge-caldo {
    background: #fef3c7;
    color: #92400e;
}

.badge-trattativa {
    background: #fce7f3;
    color: #be185d;
}

.badge-pianificata {
    background: #dbeafe;
    color: #1e40af;
}

.badge-effettuata {
    background: #dcfce7;
    color: #166534;
}

.badge-annullata {
    background: #f3f4f6;
    color: #6b7280;
}

.actions {
    display: flex;
    gap: 8px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.flash-messages {
    margin-bottom: 20px;
}

.flash {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.flash.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.flash.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.agenda-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agenda-date {
    font-weight: 600;
    color: #8B1538;
    min-width: 120px;
}

.agenda-details {
    flex: 1;
    margin-left: 20px;
}

.agenda-name {
    font-weight: 500;
    color: #111827;
}

.agenda-notes {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 4px;
}

.legend {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.pianificata { background: #dbeafe; border-left: 3px solid #2563eb; }
.legend-color.effettuata { background: #dcfce7; border-left: 3px solid #16a34a; }
.legend-color.annullata { background: #f3f4f6; border-left: 3px solid #9ca3af; }

.filters-panel {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 150px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.stats-card.wide {
    grid-column: 1 / -1;
}

.stats-card.highlight {
    border-color: #2563eb;
    background: #eff6ff;
}

.stats-card.highlight-green {
    border-color: #16a34a;
    background: #f0fdf4;
}

.stats-card.alert-card {
    border-color: #f59e0b;
    background: #fffbeb;
}

.stats-card h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.stats-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 600;
    color: #111827;
}

.stat-value.small {
    font-size: 0.8rem;
    font-weight: 400;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.kpi-item {
    text-align: center;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.kpi-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.text-success { color: #16a34a; }
.text-warning { color: #f59e0b; }
.text-danger { color: #dc2626; }
.text-muted { color: #9ca3af; font-size: 0.85rem; }

.stats-section {
    margin-bottom: 30px;
}

.stats-section h2 {
    margin-bottom: 10px;
}

.section-note {
    color: #6b7280;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.card-note {
    color: #6b7280;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.alert-list {
    list-style: none;
    padding: 0;
}

.alert-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.alert-list li:last-child {
    border-bottom: none;
}

.row-warning {
    background: #fffbeb;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #dc2626;
}

.nav-active {
    background: #8B1538 !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
}

.rapide-container {
    max-width: 600px;
    margin: 0 auto;
}

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

.rapide-header h1 {
    margin-bottom: 0;
}

.mese-badge {
    background: #fce8ec;
    color: #8B1538;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.mese-selector {
    background: #fce8ec;
    color: #8B1538;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #8B1538;
    cursor: pointer;
}

.commerciale-selector {
    margin-bottom: 15px;
}

.commerciale-selector select {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
}

.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: white;
    color: #8B1538;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tab-btn:hover:not(.active) {
    color: #374151;
}

.btn-convert {
    background: #fef3c7;
    color: #92400e;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s;
}

.btn-convert:hover {
    background: #fde68a;
}

.search-box {
    margin-bottom: 15px;
}

.search-box input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #8B1538;
}

.stats-search-box {
    max-width: 400px;
    margin: 0 auto 20px;
}

.stats-search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s;
}

.stats-search-box input:focus {
    outline: none;
    border-color: #8B1538;
}

.stats-search-box input::placeholder {
    color: #9ca3af;
}

.table-search-box {
    max-width: 400px;
    margin-bottom: 20px;
}

.table-search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s;
}

.table-search-box input:focus {
    outline: none;
    border-color: #8B1538;
}

.table-search-box input::placeholder {
    color: #9ca3af;
}

.table-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.table-filters input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.table-filters input:focus {
    outline: none;
    border-color: #8B1538;
}

.table-filters select {
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    min-width: 150px;
}

.table-filters select:focus {
    outline: none;
    border-color: #8B1538;
}

.action-icons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-view {
    background: #e0f2fe;
    color: #0369a1;
}

.btn-view:hover {
    background: #bae6fd;
}

.btn-edit {
    background: #fef3c7;
    color: #b45309;
}

.btn-edit:hover {
    background: #fde68a;
}

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
}

.btn-delete:hover {
    background: #fecaca;
}

.dettaglio-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dettaglio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dettaglio-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dettaglio-item.full-width {
    grid-column: 1 / -1;
}

.dettaglio-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.dettaglio-value {
    font-size: 1rem;
    color: #111827;
}

.header-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 600px) {
    .dettaglio-grid {
        grid-template-columns: 1fr;
    }
}

.search-box input::placeholder {
    color: #9ca3af;
}

.contatti-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contatto-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
}

.contatto-card:active {
    transform: scale(0.98);
}

.contatto-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.contatto-nome {
    font-weight: 500;
    color: #111827;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.3;
}

.contatto-tipo {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.badge-cliente {
    background: #dcfce7;
    color: #166534;
}

.badge-prospect {
    background: #fef3c7;
    color: #92400e;
}

.contatto-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.visita-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B1538;
    min-width: 32px;
    text-align: center;
    transition: transform 0.2s;
}

.visita-count.count-updated {
    transform: scale(1.3);
    color: #16a34a;
}

.btn-add-visita {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #8B1538;
    color: white;
    border: none;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.btn-add-visita:hover {
    background: #6d1029;
    transform: scale(1.05);
}

.btn-add-visita:active {
    transform: scale(0.95);
    background: #5a0d22;
}

.btn-remove-visita {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    border: none;
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.btn-remove-visita:hover {
    background: #d1d5db;
}

.btn-remove-visita:active {
    transform: scale(0.95);
    background: #9ca3af;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.mobile-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #8B1538;
    font-weight: 700;
    font-size: 1.2rem;
}

.logout-btn {
    font-size: 1.5rem;
    color: #6b7280;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.mobile-header .logo-img {
    height: 32px;
    width: auto;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 0.7rem;
    padding: 4px 8px;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item .nav-icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.bottom-nav-item .nav-label {
    font-weight: 500;
}

.bottom-nav-item.active {
    color: #8B1538;
}

.bottom-nav-item.active .nav-label {
    font-weight: 600;
}

body {
    padding-bottom: 70px;
}

.container {
    padding: 15px;
    padding-bottom: 80px;
}

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

.page-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    min-width: 600px;
}

table.table-simple {
    min-width: auto;
    width: 100%;
}

table.table-simple th,
table.table-simple td {
    padding: 12px 8px;
}

table.table-simple td:first-child {
    word-wrap: break-word;
    word-break: break-word;
}

table.table-simple .action-icons {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .day-cell {
        min-height: 80px;
        padding: 4px;
    }
    
    .day-header {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    .visit {
        font-size: 0.65rem;
        padding: 4px;
    }
    
    .rapide-container {
        padding: 0;
    }
    
    .contatto-card {
        padding: 12px;
    }
    
    .btn-add-visita {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    .table-filters {
        flex-direction: column;
    }
    
    .table-filters input,
    .table-filters select {
        width: 100%;
    }
    
    .dettaglio-grid {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .form-card {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .action-icons {
        gap: 4px;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
    }
}

.desktop-nav {
    display: none;
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
}

.desktop-nav .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #8B1538;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
}

.desktop-nav .logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    display: block;
    padding: 10px 20px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-menu li a:hover {
    background: #f3f4f6;
    color: #8B1538;
}

.nav-menu li a.active {
    background: #8B1538;
    color: white;
}

.nav-logout {
    padding: 10px 20px;
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #dc2626;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-logout:hover {
    background: #dc2626;
    color: white;
}

@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
    
    .bottom-nav {
        display: none;
    }
    
    .desktop-nav {
        display: block;
    }
    
    body {
        padding-bottom: 0;
    }
    
    .container {
        padding: 30px;
        padding-bottom: 30px;
    }
    
    .page-header h1 {
        font-size: 2rem;
        font-weight: 300;
    }
}

.admin-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.section-header h2 {
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-admin {
    background: #8B1538;
    color: white;
}

.badge-user {
    background: #e5e7eb;
    color: #374151;
}

.admin-info {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}

.admin-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.admin-info ul {
    margin: 0;
    padding-left: 20px;
}

.admin-info li {
    margin-bottom: 8px;
    color: #4b5563;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #8B1538;
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 5px;
}
