@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    min-height: 100vh;
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-bottom: 1px solid #374151;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #cbd5e0;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-link.active {
    background-color: #e53e3e;
    color: #ffffff;
}

.nav-icon {
    font-size: 1.1rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 500;
    color: #ffffff;
}

.logout-btn {
    padding: 6px 12px;
    background-color: #e53e3e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.logout-btn:hover {
    background-color: #c53030;
}

/* Print Styles */
@media print {
    @page { 
        margin: 0; 
        size: landscape;
    }
    
    .navbar,
    .form-section,
    .preview-header,
    .print-btn {
        display: none !important;
    }
    
    .pass-preview-section {
        display: block !important;
    }
    
    .parking-pass {
        width: 100%;
        height: 100vh;
        margin: 0;
        padding: 1cm;
    }
}

table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
td, th {
    padding: 12px 15px;
}

thead tr {
    background-color: rgb(139, 0, 44);
    color: #ffffff;
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid #dddddd;
}

tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

tbody tr:last-of-type {
    border-bottom: 2px solid rgb(139, 0, 44);
}

tbody tr.active-row {
    font-weight: bold;
    color: rgb(139, 0, 44);
}

.logo {
    max-height: 20vh;
    max-width: 300px;

    height: auto;
    display: block;
    margin: 0 auto;
}
body {
    font-family: "Helvetica", sans-serif;
}
body::-webkit-scrollbar {
    display: none;
}
.submit {
    align-items: center;
    background-color: rgb(139, 0, 44);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: .25rem;
    box-sizing: border-box;
    color: rgba(255, 255, 255);
    cursor: pointer;
    font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
    line-height: 1.25;
    margin: 0;
    height: 10%;
    padding: calc(.875rem - 1px) calc(1.5rem - 1px);
    position: relative;
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    width: 100%;
}
#submit {
    align-items: center;
    background-color: rgb(139, 0, 44);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: .25rem;
    box-sizing: border-box;
    color: rgba(255, 255, 255);
    cursor: pointer;
    font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
    line-height: 1.25;
    margin: 0;
    height: 10%;
    padding: calc(.875rem - 1px) calc(1.5rem - 1px);
    position: relative;
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    width: 100%;
}
#print { 
    align-items: center;
    background-color: rgb(139, 0, 44);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: .25rem;
    box-sizing: border-box;
    color: rgba(255, 255, 255);
    cursor: pointer;
    font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
    line-height: 1.25;
    margin: 0;
    height: 10%;
    padding: calc(.875rem - 1px) calc(1.5rem - 1px);
    position: relative;
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    width: 100%;
}

#info {
    width: 60%;
    margin: auto;
}
#dates {
    width: 100%;
    grid-area: date;
    height: 5vi;
    padding: 1vi;
    display: grid;
    grid-template-areas: "a"
    "b"
    "b"
    "b"
    "c";
}
/* #lot positioning removed - was causing form input to float */

#pass {
    margin: 1.6cm; size: Letter landscape;
    display: grid;
    grid-template-areas: 
    "head head head"
    "date date qrcode"
    "carInfo carInfo qrcode"
    "carInfo carInfo qrcode"
    "agentInfo agentInfo passInfo";
    gap:1vi;
}
#carInfo {
    margin-top:4vi;
    grid-area: carInfo;
    width: 100%;
    border: 5px solid rgb(139, 0, 44);
    border-radius: 20px;
    align-self: center;
    justify-self: center;
}
#carInfo > p {
    margin: 2.4vi;
    text-align: left;
    font-size: 4vi;
}
#qrcode {
    grid-area: qrcode;
    justify-self: end;
}
#qrcode > img{
    height: 30vi;
    
}
#pass h1 {
    grid-area: head;
    font-size: 4vi;
    text-align: center;
}
#pass p {
    text-align: left;
    font-size: 2vi;
}
#dates > h2 {
    font-size: 7vi;
    margin:auto;
    text-align: center;
    align-self: center;
    grid-area: "b";
}
#dates > p {
    text-align: center;
    margin: 0px;
    padding: none;
    font-size: 2vi;
    font-weight: bold;
}

#agentInfo {
    grid-area: agentInfo;
}
#passInfo {
    grid-area: passInfo;
}

/* Legacy input[type=date] removed */

/* Legacy styles removed - using modern form styles instead *//*
 Main Container Styles */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Form Section Styles */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    max-width: 600px;
    width: 100%;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #d1d5db;
    font-size: 1rem;
}

.pass-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    width: 100% !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: white !important;
    color: #111827 !important;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none !important;
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    background-color: white !important;
}

.form-group input[readonly] {
    background-color: #f9fafb !important;
    color: #6b7280 !important;
}

.generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #e53e3e 0%, #991b1b 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1rem;
}

.generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-icon {
    font-size: 1.1rem;
}

/* Pass Preview Section */
.pass-preview-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    grid-column: 1 / -1;
    margin-top: 2rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.preview-header h2 {
    color: #38a169;
    font-size: 1.5rem;
    font-weight: 600;
}

.print-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #38a169;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.print-btn:hover {
    background-color: #047857;
}

/* Parking Pass Styles - Professional Design */
.pass-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.parking-pass {
    width: 100%;
    max-width: 600px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid #2d3748;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    font-family: 'Inter', sans-serif;
}

/* Pass Header */
.pass-header {
    background: linear-gradient(135deg, #2d3748 0%, #e53e3e 100%);
    color: white;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 1rem;
}

.header-left .pass-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.header-center {
    text-align: center;
}

.pass-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.pass-id-section {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.id-label {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

.id-value {
    font-size: 1rem;
    font-weight: 700;
    margin-left: 0.5rem;
    font-family: 'Courier New', monospace;
}

.header-right .qr-section {
    text-align: center;
}

.qr-section #qrcode {
    background: white;
    padding: 8px;
    border-radius: 8px;
    display: inline-block;
}

.qr-section #qrcode img {
    width: 70px;
    height: 70px;
    display: block;
}

.qr-label {
    font-size: 0.625rem;
    font-weight: 600;
    margin-top: 0.5rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* Validity Banner */
.validity-banner {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    color: #92400e;
    padding: 1rem 1.5rem;
    text-align: center;
}

.validity-label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.validity-dates {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.date-label {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.date-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: #78350f;
}

.date-separator {
    font-size: 1.5rem;
    font-weight: bold;
    color: #92400e;
}

/* Vehicle Section */
.vehicle-section {
    padding: 1.5rem;
    background: white;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.vehicle-item {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.vehicle-item.license-highlight {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #e53e3e;
    grid-column: 1 / -1;
}

.vehicle-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.vehicle-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.license-plate-value {
    font-size: 8rem;
    font-weight: 800;
    color: #2d3748;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Parking Details */
.parking-details {
    padding: 1rem 1.5rem;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-item {
    text-align: center;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
}

.lot-value {
    color: #c53030;
    font-size: 1rem;
}

.agent-value {
    color: #38a169;
}

/* Pass Footer */
.pass-footer {
    background: #1e293b;
    color: white;
    padding: 1rem 1.5rem;
}

.footer-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
}

.notice-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.notice-text {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #fecaca;
}

.footer-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.footer-date {
    font-family: 'Courier New', monospace;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.print-btn {
    background: #38a169;
    color: white;
}

.print-btn:hover {
    background: #047857;
    transform: translateY(-1px);
}

.pdf-btn {
    background: #c53030;
    color: white;
}

.pdf-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.email-btn {
    background: #7c3aed;
    color: white;
}

.email-btn:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

/* Form Enhancements */
.email-section {
    background: #f9fafb;
    border: 2px dashed #e53e3e;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: center;
}

.email-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.email-section input {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    padding: 12px 16px;
    border: 2px solid #e53e3e;
    border-radius: 8px;
    font-size: 1rem;
}

.email-section input:focus {
    outline: none;
    border-color: #991b1b;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-help {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: block;
    text-align: center;
    font-style: italic;
}

/* Records Page Styles */
.records-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.records-header {
    text-align: center;
    margin-bottom: 2rem;
}

.records-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.records-header p {
    color: #d1d5db;
    font-size: 1.1rem;
}

.search-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
}

.search-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #e53e3e;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background-color: #2c5282;
}

.search-icon {
    font-size: 1rem;
}

.active-filters {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f3f4f6;
    color: #991b1b;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-remove {
    color: #991b1b;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.filter-remove:hover {
    color: #2d3748;
}

.clear-filters {
    color: #e53e3e;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.clear-filters:hover {
    text-decoration: underline;
}

.table-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.table-info {
    padding: 1rem 1.5rem;
    background-color: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.record-count {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.table-container {
    overflow-x: auto;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
}

.records-table th {
    background-color: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
}

.records-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
}

.records-table tbody tr:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.records-table tbody tr:hover td {
    color: #1f2937;
}

.records-table tbody tr:hover .pass-link {
    color: #991b1b;
}

.pass-link {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 600;
}

.pass-link:hover {
    text-decoration: underline;
}

.color-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
    border: 1px solid #d1d5db;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-separator {
    color: #9ca3af;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-expired {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-future {
    background-color: #f3f4f6;
    color: #2d3748;
}

.status-unknown {
    background-color: #fef3c7;
    color: #92400e;
}

.pagination {
    padding: 1rem 1.5rem;
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background-color: #e53e3e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.pagination-btn:hover {
    background-color: #2c5282;
}

.pagination-info {
    font-weight: 500;
    color: #374151;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.clear-search-btn,
.generate-first-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #e53e3e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.clear-search-btn:hover,
.generate-first-btn:hover {
    background-color: #2c5282;
}

/* Scan Page Styles */
.scan-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.scan-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.scan-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.verification-result {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.status-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.status-valid {
    background-color: #d1fae5;
    border: 2px solid #48bb78;
}

.status-invalid {
    background-color: #fee2e2;
    border: 2px solid #e53e3e;
}

.status-expired {
    background-color: #fef3c7;
    border: 2px solid #f59e0b;
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.status-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.status-valid .status-title {
    color: #065f46;
}

.status-invalid .status-title {
    color: #991b1b;
}

.status-expired .status-title {
    color: #92400e;
}

.status-message {
    font-size: 1rem;
    color: #6b7280;
}

.pass-details {
    margin-bottom: 2rem;
}

.pass-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-item {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.verification-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.verification-notice p {
    color: #92400e;
    font-size: 0.875rem;
    margin: 0;
}

.scan-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.action-btn.primary {
    background-color: #e53e3e;
    color: white;
}

.action-btn.primary:hover {
    background-color: #2c5282;
}

.action-btn.secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.action-btn.secondary:hover {
    background-color: #e5e7eb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .nav-user {
        justify-content: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .scan-actions {
        flex-direction: column;
    }
    
    .records-container,
    .main-container {
        padding: 1rem;
    }
}

/* Legacy table styles for compatibility */
table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

td, th {
    padding: 12px 15px;
}

thead tr {
    background-color: rgb(139, 0, 44);
    color: #ffffff;
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid #dddddd;
}

tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

tbody tr:last-of-type {
    border-bottom: 2px solid rgb(139, 0, 44);
}

tbody tr.active-row {
    font-weight: bold;
    color: rgb(139, 0, 44);
}

.logo {
    max-height: 20vh;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

body::-webkit-scrollbar {
    display: none;
}

.submit {
    align-items: center;
    background-color: rgb(139, 0, 44);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: .25rem;
    box-sizing: border-box;
    color: rgba(255, 255, 255);
    cursor: pointer;
    font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
    line-height: 1.25;
    margin: 0;
    height: 10%;
    padding: calc(.875rem - 1px) calc(1.5rem - 1px);
    position: relative;
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    width: 100%;
}

#submit {
    align-items: center;
    background-color: rgb(139, 0, 44);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: .25rem;
    box-sizing: border-box;
    color: rgba(255, 255, 255);
    cursor: pointer;
    font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
    line-height: 1.25;
    margin: 0;
    height: 10%;
    padding: calc(.875rem - 1px) calc(1.5rem - 1px);
    position: relative;
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    width: 100%;
}

#print { 
    align-items: center;
    background-color: rgb(139, 0, 44);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: .25rem;
    box-sizing: border-box;
    color: rgba(255, 255, 255);
    cursor: pointer;
    font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
    line-height: 1.25;
    margin: 0;
    height: 10%;
    padding: calc(.875rem - 1px) calc(1.5rem - 1px);
    position: relative;
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    width: 100%;
}

#info {
    width: 60%;
    margin: auto;
}

#dates {
    width: 100%;
    grid-area: date;
    height: 5vi;
    padding: 1vi;
    display: grid;
    grid-template-areas: "a"
    "b"
    "b"
    "b"
    "c";
}

/* Second #lot positioning removed */

#pass {
    margin: 1.6cm; 
    size: Letter landscape;
    display: grid;
    grid-template-areas: 
    "head head head"
    "date date qrcode"
    "carInfo carInfo qrcode"
    "carInfo carInfo qrcode"
    "agentInfo agentInfo passInfo";
    gap:1vi;
}

#carInfo {
    margin-top:4vi;
    grid-area: carInfo;
    width: 100%;
    border: 5px solid rgb(139, 0, 44);
    border-radius: 20px;
    align-self: center;
    justify-self: center;
}

#carInfo > p {
    margin: 2.4vi;
    text-align: left;
    font-size: 4vi;
}

#qrcode {
    grid-area: qrcode;
    justify-self: end;
}

#qrcode > img{
    height: 30vi;
}

#pass h1 {
    grid-area: head;
    font-size: 4vi;
    text-align: center;
}

#pass p {
    text-align: left;
    font-size: 2vi;
}

#dates > h2 {
    font-size: 7vi;
    margin:auto;
    text-align: center;
    align-self: center;
    grid-area: "b";
}

#dates > p {
    text-align: center;
    margin: 0px;
    padding: none;
    font-size: 2vi;
    font-weight: bold;
}

#agentInfo {
    grid-area: agentInfo;
}

#passInfo {
    grid-area: passInfo;
}

/* Duplicate form styles removed - using the !important version above *//* 
Dashboard Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.dashboard-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.quick-actions {
    grid-column: 1;
    grid-row: 1;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.action-card.primary {
    background: linear-gradient(135deg, #e53e3e 0%, #991b1b 100%);
    color: white;
}

.action-card.secondary {
    background-color: #f8fafc;
    color: #374151;
    border-color: #e5e7eb;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.action-card.secondary:hover {
    border-color: #e53e3e;
    background-color: #f9fafb;
}

.action-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.action-content p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

.action-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0.7;
}

.recent-activity {
    grid-column: 2;
    grid-row: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #e53e3e;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}



.tips-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #e53e3e;
}

.tip-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.tip-content {
    font-size: 0.875rem;
    line-height: 1.5;
}

.tip-content strong {
    color: #374151;
    font-weight: 600;
}

.quick-scan {
    grid-column: 1;
    grid-row: 2;
}

.quick-scan p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.scan-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scan-input-group {
    display: flex;
    gap: 0.5rem;
}

.scan-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.scan-input-group input:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.scan-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #e53e3e;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.scan-btn:hover {
    background-color: #2c5282;
}

.scan-icon {
    font-size: 1rem;
}

/* Dashboard Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .quick-actions,
    .recent-activity,
    .quick-scan {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
    
    .action-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .action-arrow {
        display: none;
    }
    
    .scan-input-group {
        flex-direction: column;
    }
}/
* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-link {
        justify-content: center;
        padding: 1rem;
        border-radius: 8px;
        background: #f8fafc;
    }
    
    .nav-user {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Main Container */
    .main-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 2rem;
    }
    
    /* Form Section */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    /* Parking Pass Mobile */
    .parking-pass {
        max-width: 100%;
        margin: 0;
    }
    
    .pass-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-left,
    .header-right {
        display: flex;
        justify-content: center;
    }
    
    .pass-title {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }
    
    .validity-dates {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .date-separator {
        transform: rotate(90deg);
        font-size: 1rem;
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .footer-branding {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    /* Action Buttons Mobile */
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        justify-content: center;
        width: 100%;
        padding: 1rem;
    }
    
    /* Dashboard Mobile */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header h1 {
        font-size: 1.75rem;
    }
    
    .action-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .action-arrow {
        display: none;
    }
    
    /* Records Mobile */
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .records-table {
        font-size: 0.75rem;
    }
    
    .records-table th,
    .records-table td {
        padding: 0.5rem 0.25rem;
    }
    
    /* Scan Page Mobile */
    .scan-container {
        padding: 1rem;
    }
    
    .scan-actions {
        flex-direction: column;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .landing-main {
        padding: 1.5rem;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .parking-pass {
        border-radius: 12px;
    }
    
    .pass-header {
        padding: 0.75rem;
    }
    
    .pass-title {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    
    .vehicle-section,
    .parking-details {
        padding: 1rem;
    }
    
    .license-plate-value {
        font-size: 6rem;
        letter-spacing: 1px;
    }
    
    .footer-notice {
        padding: 0.5rem;
    }
    
    .notice-text {
        font-size: 0.6875rem;
    }
}

/* Print Styles for Beautiful PDF */
@media print {
    @page {
        margin: 0.5in;
        size: letter;
    }
    
    body * {
        visibility: hidden;
    }
    
    .parking-pass,
    .parking-pass * {
        visibility: visible;
    }
    
    .parking-pass {
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: 3px solid #2d3748 !important;
    }
    
    .pass-header {
        background: #2d3748 !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    .validity-banner {
        background: #f59e0b !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    .pass-footer {
        background: #1e293b !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    .footer-notice {
        background: rgba(239, 68, 68, 0.1) !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    /* Extra large license plate for print */
    .license-plate-value {
        font-size: 8rem !important;
        font-weight: 900 !important;
        color: #000000 !important;
        text-align: center !important;
        line-height: 1 !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e53e3e;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .parking-pass {
        border: 4px solid #000;
    }
    
    .pass-header {
        background: #000 !important;
        color: #fff !important;
    }
    
    .validity-banner {
        background: #333 !important;
        color: #fff !important;
    }
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid #e53e3e;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
/* CR
ITICAL FIX: Override all input width issues */
.pass-form .form-grid .form-group input,
.pass-form .form-grid .form-group select {
    width: 100% !important;
    max-width: 300px !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    background-color: white !important;
    box-sizing: border-box !important;
}

.pass-form .form-grid .form-group input:focus,
.pass-form .form-grid .form-group select:focus {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    outline: none !important;
}

.pass-form .form-grid .form-group {
    max-width: 350px !important;
}

/* Force grid to work properly - Desktop only */
@media (min-width: 769px) {
    .pass-form .form-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
        max-width: 100% !important;
    }
}/* EMER
GENCY FIX: Hard reset for form inputs */
* input[type="text"],
* input[type="email"], 
* input[type="date"],
* select {
    width: auto !important;
    max-width: 100% !important;
    min-width: 200px !important;
}

/* Specific fix for form grid inputs */
.form-section input,
.form-section select {
    width: 100% !important;
    max-width: 280px !important;
    min-width: 200px !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    background-color: white !important;
    box-sizing: border-box !important;
}

/* Make sure the grid container doesn't overflow */
.form-section {
    max-width: 600px !important;
    width: 100% !important;
}

/* Desktop grid layout only */
@media (min-width: 769px) {
    .form-section .form-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

.form-section .form-group {
    width: 100% !important;
    max-width: 280px !important;
}/
* DEBUG: Add borders to see what's happening */
.form-section {
    border: 2px solid red !important;
}

/* Debug borders removed - form is now clean *//* Se
curity Watermarks for Parking Pass */
.parking-pass {
    position: relative;
}

.security-watermarks {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.watermark {
    position: absolute;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(30, 64, 175, 0.03);
    transform: rotate(-45deg);
    user-select: none;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.watermark-1 {
    top: 15%;
    left: 10%;
}

.watermark-2 {
    top: 45%;
    right: 15%;
}

.watermark-3 {
    bottom: 35%;
    left: 20%;
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
}

.watermark-4 {
    top: 25%;
    right: 35%;
    font-size: 2rem;
}

/* Ensure pass content appears above watermarks */
.pass-header,
.validity-banner,
.vehicle-section,
.parking-details,
.pass-footer {
    position: relative;
    z-index: 2;
}

/* Print styles for watermarks */
@media print {
    .watermark {
        color: rgba(30, 64, 175, 0.12) !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}/*
 Pass Detail Page Styles */
.pass-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.header-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.pass-status {
    margin-top: 0.5rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-valid {
    background-color: #d1fae5;
    color: #065f46;
}

.status-expired {
    background-color: #fee2e2;
    color: #991b1b;
}

.back-btn {
    padding: 0.75rem 1.5rem;
    background-color: #6b7280;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.back-btn:hover {
    background-color: #4b5563;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.info-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.pass-id-highlight {
    font-family: 'Courier New', monospace;
    background-color: #f3f4f6;
    color: #991b1b;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.status-text.valid {
    color: #38a169;
}

.status-text.expired {
    color: #c53030;
}

.license-display {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 8px;
}

.license-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.license-number {
    font-size: 8rem;
    font-weight: 800;
    color: #2d3748;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.vehicle-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vehicle-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
}

.vehicle-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.lot-highlight {
    color: #c53030;
    font-weight: 700;
}

.admin-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
}

.admin-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.qr-card {
    grid-column: 1 / -1;
}

.qr-display {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.qr-code-container {
    flex-shrink: 0;
}

.qr-info {
    flex: 1;
}

.qr-info p {
    margin-bottom: 0.5rem;
}

.qr-url {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 0.5rem;
    border-radius: 4px;
    word-break: break-all;
}

.verify-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #e53e3e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.verify-link:hover {
    background-color: #2c5282;
}

.action-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.action-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.print-btn {
    background-color: #38a169;
    color: white;
}

.print-btn:hover {
    background-color: #047857;
}

.pdf-btn {
    background-color: #c53030;
    color: white;
}

.pdf-btn:hover {
    background-color: #b91c1c;
}

.email-btn {
    background-color: #7c3aed;
    color: white;
}

.email-btn:hover {
    background-color: #6d28d9;
}

.update-btn {
    background-color: #f59e0b;
    color: white;
}

.update-btn:hover {
    background-color: #d97706;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cancel-btn {
    flex: 1;
    padding: 0.75rem;
    background-color: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.cancel-btn:hover {
    background-color: #e5e7eb;
}

.save-btn {
    flex: 1;
    padding: 0.75rem;
    background-color: #e53e3e;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.save-btn:hover {
    background-color: #2c5282;
}

/* Responsive Design for Pass Detail */
@media (max-width: 768px) {
    .pass-detail-container {
        padding: 1rem;
    }
    
    .detail-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-grid,
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-display {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}
/
* Public Request Form Styles */
.public-navbar {
    background: linear-gradient(135deg, #2d3748 0%, #e53e3e 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.public-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.request-header {
    text-align: center;
    margin-bottom: 3rem;
}

.request-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.request-header p {
    font-size: 1.125rem;
    color: #64748b;
}

.request-form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.submit-btn {
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-section {
    text-align: center;
    background: white;
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-section h2 {
    color: #38a169;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-details {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.success-details ul {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
}

.success-details li {
    margin-bottom: 0.5rem;
}

.new-request-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
}

/* Approvals Page Styles */
.approvals-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.approvals-header {
    text-align: center;
    margin-bottom: 2rem;
}

.approvals-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.approvals-header p {
    color: #d1d5db;
    font-size: 1.1rem;
}

.pending-alert {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 8px;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #e53e3e;
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #e2e8f0;
}

.request-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.request-card.pending {
    border-left: 4px solid #f59e0b;
}

.request-card.approved {
    border-left: 4px solid #48bb78;
}

.request-card.denied {
    border-left: 4px solid #e53e3e;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.request-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.request-id {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 1rem;
}

.request-date {
    color: #64748b;
    font-size: 0.875rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.detail-section p {
    margin-bottom: 0.5rem;
    color: #374151;
}

.reason-section {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.reason-text {
    color: #374151;
    line-height: 1.6;
    font-style: italic;
}

.decision-info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    color: #166534;
}

.decision-info strong {
    color: #14532d;
    font-weight: 600;
}

.decision-info p {
    color: #166534;
    margin: 0.5rem 0;
}

.request-actions {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.admin-notes {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    resize: vertical;
    min-height: 80px;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.approve-btn {
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
}

.deny-btn {
    background: linear-gradient(135deg, #c53030 0%, #e53e3e 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-approved {
    background-color: #d1fae5;
    color: #065f46;
}

.status-denied {
    background-color: #fee2e2;
    color: #991b1b;
}

.notification-badge {
    background: #e53e3e;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.5rem;
}

.no-requests {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.no-requests-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pass-link {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 600;
}

.pass-link:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }
    
    .request-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
/* Input Validation Styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e53e3e;
    background-color: #fed7d7;
}

.field-error {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.form-group input:valid {
    border-color: #38a169;
}

.form-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #e53e3e;
}

/* Security/Captcha Styles */
.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
}

.captcha-note {
    font-size: 0.875rem;
    color: #4a5568;
    text-align: center;
    margin: 0;
}

/* Enhanced Form Security */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    transition: border-color 0.2s, background-color 0.2s;
}

.form-group input:focus:valid {
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

.form-group input:focus:invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Rate Limiting Notice */
.rate-limit-notice {
    background: #fef5e7;
    border: 1px solid #f6ad55;
    color: #744210;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #22543d;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
}

.security-icon {
    font-size: 1rem;
}/* Security
 Information Styles */
.security-info {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 8px;
}

.security-info p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #22543d;
    line-height: 1.5;
}

/* Enhanced Form Security Indicators */
.form-group input:valid:not(:placeholder-shown) {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2338a169' d='m6.564.75-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-group input:invalid:not(:placeholder-shown):not(:focus) {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e53e3e'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.5 5.5 1 1m0-1-1 1'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Loading States */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Security Notices */
.security-notice {
    background: #fef5e7;
    border: 1px solid #f6ad55;
    color: #744210;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-notice-icon {
    font-size: 1rem;
    flex-shrink: 0;
}/* Devel
opment Captcha Styles */
.dev-captcha {
    background: #fef5e7;
    border: 2px dashed #f6ad55;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.dev-captcha label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #744210;
    cursor: pointer;
}

.dev-captcha input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Turnstile loading indicator */
.cf-turnstile {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-turnstile:empty::after {
    content: 'Loading security verification...';
    color: #6b7280;
    font-style: italic;
}/* Enhanced Mobile Responsiveness and Dark Mode Support */

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }
    
    .nav-user {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }
}

/* Mobile Form Improvements */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-section {
        padding: 1.5rem 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    .generate-btn,
    .submit-btn,
    .action-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Mobile Dashboard */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* Mobile Tables */
@media (max-width: 768px) {
    .records-table {
        font-size: 0.875rem;
    }
    
    .records-table th,
    .records-table td {
        padding: 0.5rem 0.25rem;
    }
    
    /* Hide less important columns on mobile */
    .records-table th:nth-child(n+4),
    .records-table td:nth-child(n+4) {
        display: none;
    }
    
    .records-table th:first-child,
    .records-table td:first-child,
    .records-table th:nth-child(2),
    .records-table td:nth-child(2),
    .records-table th:nth-child(3),
    .records-table td:nth-child(3) {
        display: table-cell;
    }
}

/* Mobile Pass Detail */
@media (max-width: 768px) {
    .pass-detail-container {
        padding: 1rem;
    }
    
    .pass-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Request Form */
@media (max-width: 768px) {
    .public-container,
    .request-form-section {
        padding: 1rem;
    }
    
    .request-form {
        padding: 1.5rem 1rem;
    }
    
    .form-section {
        margin-bottom: 2rem;
    }
    
    .captcha-container {
        text-align: center;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .homepage-container {
        padding: 1rem;
    }
    
    .homepage-title {
        font-size: 1.75rem;
    }
    
    .main-action-section,
    .staff-section {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .primary-title {
        font-size: 1.4rem;
    }
    
    .nav-title {
        font-size: 1rem;
    }
    
    .nav-logo {
        height: 32px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
        color: #f9fafb;
    }
    
    /* Navigation Dark Mode */
    .navbar {
        background: linear-gradient(135deg, #000000 0%, #111827 100%);
        border-bottom-color: #374151;
    }
    
    /* Cards and Sections Dark Mode */
    .main-action-section,
    .staff-section,
    .form-section,
    .stat-card,
    .feature-card {
        background: rgba(31, 41, 55, 0.95);
        border-color: #374151;
        color: #f9fafb;
    }
    
    /* Form Elements Dark Mode */
    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        background-color: #4b5563;
        border-color: #e53e3e;
    }
    
    .form-group label {
        color: #d1d5db;
    }
    
    /* Tables Dark Mode */
    .records-table {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .records-table th {
        background-color: #374151;
        color: #f9fafb;
    }
    
    .records-table tr:nth-child(even) {
        background-color: #374151;
    }
    
    .records-table tr:hover {
        background-color: #e5e7eb;
        color: #1f2937;
    }
    
    .records-table tr:hover td {
        color: #1f2937;
    }
    
    /* Pass Detail Dark Mode */
    .pass-detail-container {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .pass-info-section {
        background-color: #374151;
        border-color: #4b5563;
    }
    
    /* Buttons Dark Mode */
    .action-btn.secondary {
        background-color: #374151;
        color: #f9fafb;
        border-color: #4b5563;
    }
    
    .action-btn.secondary:hover {
        background-color: #4b5563;
    }
    
    /* Request Form Dark Mode */
    .public-container {
        background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    }
    
    .request-form-section {
        background-color: rgba(31, 41, 55, 0.95);
    }
    
    /* Success/Error Messages Dark Mode */
    .success-section {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .error-message {
        background-color: #7f1d1d;
        border-color: #dc2626;
        color: #fecaca;
    }
    
    .success-message {
        background-color: #14532d;
        border-color: #16a34a;
        color: #bbf7d0;
    }
    
    /* Links Dark Mode */
    .pass-link,
    .quick-link {
        color: #f87171;
    }
    
    .pass-link:hover,
    .quick-link:hover {
        color: #fca5a5;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 2px;
    }
    
    .action-btn,
    .generate-btn,
    .submit-btn {
        border: 2px solid currentColor;
    }
    
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-color: currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .action-btn,
    .nav-link,
    .generate-btn,
    .submit-btn {
        min-height: 44px; /* iOS recommended touch target */
        min-width: 44px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Print Styles Enhancement */
@media print {
    .navbar,
    .action-buttons,
    .form-section,
    .homepage-container > *:not(.main-action-section) {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .pass-detail-container,
    .parking-pass {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}

/* CRITICAL MOBILE FIX - Form Layout */
@media (max-width: 768px) {
    /* Main Container Mobile Fix */
    .main-container {
        grid-template-columns: 1fr !important;
        padding: 1rem !important;
        gap: 2rem !important;
        max-width: 100% !important;
    }
    
    /* Form Section - CRITICAL MOBILE FIX */
    .form-section {
        padding: 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .form-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .form-group {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .form-group input,
    .form-group select {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 12px 16px !important;
        margin: 0 !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 8px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        background-color: white !important;
        box-sizing: border-box !important;
    }
    
    .email-section {
        margin-top: 1rem !important;
        padding: 1rem !important;
    }
    
    .email-section input {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .generate-btn {
        width: 100% !important;
        padding: 16px !important;
        font-size: 16px !important;
    }
    
    /* Navigation Mobile */
    .nav-container {
        flex-direction: column !important;
        height: auto !important;
        padding: 1rem !important;
        gap: 1rem !important;
    }
    
    .nav-menu {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.5rem !important;
    }
    
    .nav-link {
        justify-content: center !important;
        padding: 1rem !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }
    
    .nav-user {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center !important;
    }
    
    /* Parking Pass Mobile */
    .parking-pass {
        max-width: 100% !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .pass-header {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }
    
    .header-left,
    .header-right {
        display: flex !important;
        justify-content: center !important;
    }
    
    .pass-title {
        font-size: 1.25rem !important;
        letter-spacing: 1px !important;
    }
    
    .validity-dates {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .date-separator {
        transform: rotate(90deg) !important;
        font-size: 1rem !important;
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr !important;
    }
    
    .detail-row {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    .footer-branding {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center !important;
    }
    
    /* Action Buttons Mobile */
    .action-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }
    
    .action-btn {
        justify-content: center !important;
        width: 100% !important;
        padding: 1rem !important;
    }
    
    /* Preview Section Mobile */
    .pass-preview-section {
        padding: 1rem !important;
    }
    
    .preview-header {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }
    
    #passIframe {
        height: 500px !important;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .form-section {
        padding: 0.75rem !important;
    }
    
    .form-header h1 {
        font-size: 1.5rem !important;
    }
    
    .parking-pass {
        border-radius: 12px !important;
    }
    
    .pass-header {
        padding: 0.75rem !important;
    }
    
    .pass-title {
        font-size: 1rem !important;
        letter-spacing: 0.5px !important;
    }
    
    .vehicle-section,
    .parking-details {
        padding: 1rem !important;
    }
    
    .license-plate-value {
        font-size: 6rem !important;
        letter-spacing: 1px !important;
    }
    
    .footer-notice {
        padding: 0.5rem !important;
    }
    
    .notice-text {
        font-size: 0.6875rem !important;
    }
}