/* RESET & BASICS */
* { box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { margin: 0; padding: 0; background-color: #f4f6f9; color: #333; }
.container { max-width: 800px; margin: 20px auto; padding: 0 15px; }

/* HEADER */
header { background-color: #2c3e50; color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.2rem; font-weight: bold; }
.btn-logout { background: #c0392b; color: white; border: none; padding: 5px 10px; cursor: pointer; border-radius: 4px; }

/* FORMS & CARDS */
.auth-card { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); max-width: 400px; margin: 40px auto; text-align: center; }
.card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 20px; }
input, select { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 4px; }

/* BUTTONS */
.btn-primary { background: #2980b9; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; }
.btn-secondary { background: #95a5a6; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; }
.btn-primary:hover { background: #2471a3; }

/* TABLES */
.styled-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.styled-table th, .styled-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; }
.styled-table th { background-color: #f8f9fa; color: #2c3e50; }
.driver-info { display: flex; align-items: center; gap: 10px; }
.driver-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #ddd; }

/* STATUS BADGES */
.status-paid { color: #27ae60; font-weight: bold; background: #eafaf1; padding: 5px 10px; border-radius: 20px; }
.status-pending { color: #c0392b; font-weight: bold; background: #fdedec; padding: 5px 10px; border-radius: 20px; }

/* UTILS */
.mt-4 { margin-top: 20px; }
.error-msg { color: red; font-size: 0.9rem; }
.filters { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }

/* RECEIPT MODAL */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.receipt-box { background: white; width: 320px; padding: 20px; font-family: 'Courier New', Courier, monospace; position: relative; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.receipt-header { text-align: center; }
.receipt-row { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.9rem; }
.total-row { font-weight: bold; font-size: 1.1rem; margin-top: 10px; }
.receipt-actions { margin-top: 20px; display: flex; justify-content: center; gap: 10px; }
hr { border: 0; border-top: 1px dashed #333; margin: 10px 0; }
.stamp { position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%) rotate(-15deg); font-size: 3rem; color: rgba(39, 174, 96, 0.3); border: 4px solid rgba(39, 174, 96, 0.3); padding: 5px; border-radius: 10px; font-weight: bold; pointer-events: none; }

/* PRINT STYLES */
@media print {
    body * { visibility: hidden; }
    #receipt-modal, #receipt-modal * { visibility: visible; }
    .modal-overlay { position: absolute; left: 0; top: 0; background: white; }
    .receipt-box { box-shadow: none; width: 100%; margin: 0; }
    .no-print { display: none !important; }
}
