/* Custom CSS for Fun Zone Ticketing System */

/* General Styles */
body {
    background-color: #f0f5ff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    transition: all 0.3s ease;
    border: none;
}

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

.card-header {
    border-radius: 15px 15px 0 0 !important;
    font-weight: bold;
    padding: 15px 20px;
}

.btn {
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Dashboard Stats */
.stat-card {
    text-align: center;
    padding: 25px;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    position: relative;
    overflow: hidden;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #0d6efd;
    opacity: 0.8;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
    background: -webkit-linear-gradient(45deg, #0062cc, #0d6efd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
}

/* POS Styling */
.activity-card {
    cursor: pointer;
    height: 100%;
    transition: all 0.4s ease;
    border-radius: 15px;
    overflow: hidden;
}

.activity-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.activity-card.selected {
    border: 3px solid #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.activity-card .card-img-top {
    height: 180px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    transition: all 0.3s ease;
}

.activity-card:hover .card-img-top {
    transform: scale(1.1);
}

.activity-card .card-body {
    padding: 18px;
}

.activity-card .price {
    font-weight: bold;
    font-size: 1.2rem;
    color: #0d6efd;
    position: relative;
    display: inline-block;
}

.activity-card .price:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #0d6efd, transparent);
}

/* Category Pills */
.category-pill {
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    font-weight: 600;
    border-radius: 20px;
    padding: 8px 16px;
}

.category-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-pill.active {
    background-color: #0d6efd;
    color: white;
}

/* Table Styling */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 15px;
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.datatable thead th {
    position: relative;
}

.datatable thead th:after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 15px;
    width: calc(100% - 30px);
    height: 1px;
    background: linear-gradient(90deg, #0d6efd, transparent);
}

/* Ticket Styles */
.ticket-container {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 300px; /* 80mm thermal paper width */
    margin: 0 auto;
    font-size: 12px; /* Smaller font size for thermal printer */
    position: relative;
    overflow: hidden;
}

.ticket-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0d6efd, #6610f2);
}

.ticket-header {
    text-align: center;
    border-bottom: 2px dashed #ddd;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.ticket-logo {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 10px;
}

.ticket-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.ticket-details {
    margin-bottom: 20px;
}

.ticket-details .row {
    margin-bottom: 10px;
}

.ticket-qr {
    text-align: center;
    margin: 25px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.ticket-qr img {
    max-width: 150px; /* QR code size for thermal paper */
    height: auto;
}

.ticket-footer {
    text-align: center;
    font-size: 0.8rem;
    color: #6c757d;
    border-top: 2px dashed #ddd;
    padding-top: 15px;
    margin-top: 20px;
}

/* Scanner Styles */
#reader {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Animation Classes */
.animate-fade {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Status badges */
.badge {
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 500;
}

.bg-primary {
    background: linear-gradient(45deg, #0062cc, #0d6efd) !important;
}

.bg-success {
    background: linear-gradient(45deg, #00923f, #10b981) !important;
}

.bg-warning {
    background: linear-gradient(45deg, #e76b00, #f59e0b) !important;
}

.bg-danger {
    background: linear-gradient(45deg, #dc1919, #ef4444) !important;
}

.bg-info {
    background: linear-gradient(45deg, #0891b2, #06b6d4) !important;
}

/* Navbar enhancements */
.navbar {
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #0062cc, #0d6efd) !important;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.dropdown-item {
    border-radius: 10px;
    padding: 8px 15px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Form controls */
.form-control {
    border-radius: 10px;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    border-color: #0d6efd;
}

.input-group .form-control {
    border-radius: 10px 0 0 10px;
}

.input-group-text {
    border-radius: 0 10px 10px 0;
    background-color: #f8f9fa;
}

/* Print Styles - keeping the same but with enhanced ticket aesthetics */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        background-color: white;
        margin: 0;
        padding: 0;
        width: 80mm; /* 80mm thermal printer width */
    }
    
    .ticket-container {
        box-shadow: none;
        padding: 5px 0;
        width: 72mm; /* Allow for margins */
        max-width: 100%;
        margin: 0 auto;
        font-size: 10px;
    }
    
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .col-6 {
        padding-left: 5px;
        padding-right: 5px;
    }

    .ticket-logo {
        font-size: 1.2rem;
    }

    .ticket-title {
        font-size: 1rem;
    }

    .ticket-footer {
        font-size: 0.6rem;
    }

    .mb-2 {
        margin-bottom: 0.3rem !important;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.025);
}

.footer .text-muted {
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

@media print {
    .footer {
        display: none !important;
    }
} 