/* Neighbourgood Gallery — Custom Styles */

/* Smooth sidebar on mobile */
#sidebar { transition: transform 0.3s ease; }

/* Table row hover */
tbody tr { transition: background 0.15s; }
tbody tr:hover { background-color: #f9fafb; }

/* Card base */
.card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    padding: 1.25rem;
}

/* Stat cards */
.stat-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-card .icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Form inputs */
.form-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
}
.form-input:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.btn-primary  { background: #4F46E5; color: #fff; }
.btn-primary:hover  { background: #4338CA; }
.btn-success  { background: #10B981; color: #fff; }
.btn-success:hover  { background: #059669; }
.btn-danger   { background: #EF4444; color: #fff; }
.btn-danger:hover   { background: #DC2626; }
.btn-warning  { background: #F59E0B; color: #fff; }
.btn-warning:hover  { background: #D97706; }
.btn-outline  { background: transparent; border: 1px solid #d1d5db; color: #374151; }
.btn-outline:hover  { background: #f9fafb; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8125rem; }

/* Table */
.table-container { overflow-x: auto; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
table { width: 100%; border-collapse: collapse; background: #fff; }
thead th { background: #f9fafb; padding: 0.75rem 1rem; text-align: left; font-size: 0.75rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #e5e7eb; }
tbody td { padding: 0.875rem 1rem; font-size: 0.875rem; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal-box { background: #fff; border-radius: 0.75rem; padding: 1.5rem; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }

/* Chart containers */
.chart-container { position: relative; height: 280px; }

/* Print */
@media print {
    #sidebar, header, .no-print { display: none !important; }
    main { overflow: visible !important; }
}
