/* Belize Bus Ticket System - CSS Styles */

/* CSS Variables */
:root {
    --primary-color: #0066cc;
    --secondary-color: #003d7a;
    --accent-color: #ff6600;
    --text-color: #333;
    --light-text: #fff;
    --bg-color: #f4f4f4;
    --border-color: #ddd;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    color: var(--light-text);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo a {
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--light-text);
    font-weight: 500;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
    border-bottom: 2px solid var(--light-text);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-login {
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    color: white;
}

.btn-login:hover {
    background-color: #e65500;
    border-color: #e65500;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* Sections */
section {
    padding: 3rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* Booking Section */
.booking-section {
    background-color: white;
}

.booking-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.forgot-link {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #666;
}

.form-error {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--error-color);
}

.has-error .form-control {
    border-color: var(--error-color);
}

.is-invalid {
    border-color: var(--error-color) !important;
}

/* Bus Results */
.bus-results {
    margin-top: 2rem;
}

.bus-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.bus-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.bus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.bus-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bus-card-header h3 {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1.25rem;
}

.bus-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.type-regular {
    background-color: #e3f2fd;
    color: #1976d2;
}

.type-express {
    background-color: #fff3e0;
    color: #f57c00;
}

.bus-card-body {
    margin-bottom: 1.5rem;
}

.bus-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.route-stop {
    text-align: center;
}

.stop-time {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.stop-name {
    display: block;
    font-size: 0.875rem;
    color: #666;
}

.route-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.bus-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.detail-item {
    text-align: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.detail-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.detail-value.price {
    color: var(--success-color);
    font-size: 1.25rem;
}

.bus-card-footer {
    text-align: center;
}

.bus-card-footer .btn {
    width: 100%;
}

/* Locations Section */
.locations-section {
    background-color: #f8f9fa;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.location-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
}

.location-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.location-card p {
    color: #666;
    margin-bottom: 1rem;
}

.location-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
}

/* About Section */
.about-section {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 0.5rem 0;
    color: #555;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact-section {
    background-color: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-item {
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
}

.contact-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-form-wrapper {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form-wrapper h3 {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #888;
}

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.auth-container {
    width: 100%;
    max-width: 500px;
    padding: 0 20px;
}

.auth-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.auth-card-large {
    max-width: 700px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Dashboard Pages */
.dashboard-page,
.admin-page,
.teller-dashboard {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.welcome-section {
    margin-bottom: 2rem;
}

.welcome-section h2 {
    text-align: left;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: #666;
}

.dashboard-grid,
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card,
.profile-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dashboard-card h3,
.profile-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.quick-actions .action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Admin Stats */
.admin-stats,
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card,
.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon,
.summary-icon {
    font-size: 2.5rem;
}

.stat-info,
.summary-info {
    display: flex;
    flex-direction: column;
}

.stat-value,
.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label,
.summary-label {
    font-size: 0.875rem;
    color: #666;
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filter-search {
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.filter-options {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-option {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-option label {
    font-size: 0.875rem;
    color: #666;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
    min-width: 150px;
}

/* Tables */
.table-wrapper {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.empty-state {
    text-align: center;
    padding: 3rem !important;
    color: #666;
}

.loading-state {
    text-align: center;
    padding: 2rem;
}

/* User Cell */
.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.badge-customer {
    background-color: #e3f2fd;
    color: #1976d2;
}

.badge-teller {
    background-color: #fff3e0;
    color: #f57c00;
}

.badge-admin {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.badge-regular {
    background-color: #e8f5e9;
    color: #388e3c;
}

.badge-express {
    background-color: #fff3e0;
    color: #f57c00;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-available {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status-booked {
    background-color: #fff3e0;
    color: #f57c00;
}

.status-confirmed {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-cancelled {
    background-color: #ffebee;
    color: #c62828;
}

.status-expired {
    background-color: #f5f5f5;
    color: #666;
}

.status-active {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status-inactive {
    background-color: #f5f5f5;
    color: #666;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--error-color) !important;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.modal-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-container {
    background: white;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-small {
    max-width: 400px;
}

.modal-medium {
    max-width: 600px;
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin-bottom: 0;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    min-width: 300px;
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--error-color);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
}

.toast-info {
    border-left: 4px solid var(--info-color);
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-success .toast-icon { color: var(--success-color); }
.toast-error .toast-icon { color: var(--error-color); }
.toast-warning .toast-icon { color: var(--warning-color); }
.toast-info .toast-icon { color: var(--info-color); }

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #666;
    padding: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.pagination-item button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-item button:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-item button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-item.active button {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-info {
    margin-left: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Report Tabs */
.report-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #f8f9fa;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.report-tab-content {
    display: none;
}

.report-tab-content.active {
    display: block;
}

.report-filters {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-group label {
    font-size: 0.875rem;
    color: #666;
}

.report-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.report-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.report-card-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.report-card-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.chart-placeholder {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.chart-mock {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    padding-top: 2rem;
}

.chart-bar {
    width: 40px;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 5px 5px 0 0;
    position: relative;
    min-height: 20px;
}

.chart-bar span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #666;
}

/* Destinations Grid */
.destinations-grid {
    display: grid;
    gap: 1.5rem;
}

.destination-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.destination-rank {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.destination-info {
    flex: 1;
}

.destination-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.destination-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.destination-bar {
    height: 8px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    flex-shrink: 0;
    min-width: 100px;
}

/* Quick Sell Section */
.quick-sell-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.quick-sell-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Recent Sales Section */
.recent-sales-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.recent-sales-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Reference Link */
.reference-link {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
}

.reference-link:hover {
    text-decoration: underline;
}

/* Custom Date Range */
.custom-date-range {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 5px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-title {
    height: 24px;
    width: 80%;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-button {
    height: 40px;
    width: 120px;
    margin-top: 1rem;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.skeleton-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.skeleton-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.skeleton-content {
    flex: 1;
}

.skeleton-table-row td {
    padding: 1rem;
}

.skeleton-cell {
    height: 20px;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .bus-info,
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content,
    .about-content,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .admin-stats,
    .summary-cards,
    .report-cards {
        grid-template-columns: 1fr;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .modal-container {
        width: 95%;
        margin: 10px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .quick-sell-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bus-card,
.location-card,
.dashboard-card,
.profile-card {
    animation: fadeIn 0.5s ease-out;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.text-success {
    color: var(--success-color);
}

.text-error {
    color: var(--error-color);
}

.text-warning {
    color: var(--warning-color);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h2 {
    text-align: left;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
}

/* Tickets Grid */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.ticket-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.ticket-reference {
    display: flex;
    flex-direction: column;
}

.reference-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
}

.reference-value {
    font-weight: 700;
    color: var(--primary-color);
}

.ticket-body {
    padding: 1.5rem;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.ticket-row .label {
    color: #666;
    font-weight: 500;
}

.ticket-row .value {
    font-weight: 600;
    color: var(--text-color);
}

.ticket-row .value.price {
    color: var(--success-color);
    font-size: 1.1rem;
}

.ticket-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Bookings List */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-item {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.booking-ref {
    font-weight: 700;
    color: var(--primary-color);
}

.booking-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.booking-price {
    font-weight: 700;
    color: var(--success-color);
    text-align: right;
}

.view-all-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--primary-color);
}

/* Popular Routes */
.routes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.route-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.route-from,
.route-to {
    font-weight: 600;
}

.route-arrow {
    color: var(--primary-color);
}

.route-price {
    margin-left: auto;
    color: var(--success-color);
    font-weight: 600;
}

/* Account Info */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    font-weight: 600;
}

/* Stats Card */
.stats-card .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.stat-item .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-item .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Actions Card */
.actions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.action-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.action-info p {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0;
}

.delete-warning {
    color: var(--error-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Sale Detail */
.sale-detail,
.ticket-detail {
    padding: 1rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.detail-item .detail-label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.detail-item .detail-value {
    display: block;
    font-weight: 600;
    color: var(--text-color);
}

/* Booking Total */
.booking-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 1.25rem;
}

.total-price {
    font-weight: 700;
    color: var(--success-color);
    font-size: 1.5rem;
}

/* Bus Summary in Modal */
.bus-summary {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.bus-summary h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-bus-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success-color);
    margin-top: 0.5rem;
}

/* Cancel Warning */
.cancel-warning {
    color: var(--error-color);
    font-weight: 600;
    margin: 1rem 0;
}

/* Report Chart Container */
.report-chart-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.report-chart-container h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Profile Form */
.profile-form,
.password-form {
    max-width: 100%;
}

/* Admin Page Specific */
.admin-page .table-wrapper {
    margin-bottom: 2rem;
}

/* Teller specific styles */
.teller-sales-page .custom-date-range {
    display: none;
}

.teller-sales-page .custom-date-range[style*="display: block"] {
    display: block !important;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .filter-bar,
    .pagination,
    .btn,
    button,
    .modal {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .container {
        max-width: 100%;
    }
    
    .ticket-card,
    .bus-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}