/* kiosk.css */
:root {
    --primary: #2d4997;
    --primary-dark: #0a76d5;
    --primary-light: #3a8bdc;
    --secondary: #4a6fa5;
    --secondary-dark: #3a5984;
    --accent: #ff7e5f;
    --accent-dark: #e86a4a;
    --text-dark: #2d3748;
    --text-light: #eff1f3;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    color: var(--text-dark);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    z-index: -1;
}

.container {
    /* width: 100%;
    max-width: 1200px; */
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow:
        0 20px 40px rgba(74, 111, 165, 0.15),
        0 8px 16px rgba(74, 111, 165, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.logo:hover {
    transform: scale(1.05);
   
}

.logo-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 111, 165, 0.2) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
.mesob-title{
    color: white;
      font-size: 2.75rem;
    font-weight: 700;
}

.title {
    font-size: 2.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 8px rgba(74, 111, 165, 0.1);
    color: white !important;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.header-decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.decoration-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    animation: bounce 2s ease-in-out infinite;
}

.decoration-circle:nth-child(2) {
    background: var(--secondary);
    animation-delay: 0.2s;
}

.decoration-circle:nth-child(3) {
    background: var(--success);
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.section {
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(74, 111, 165, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(74, 111, 165, 0.1);
}

.section-title i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 1.75rem;
}

.card {
    background: #2d4997;
    border-radius: 20px;
    padding: 2rem;
    box-shadow:
        0 10px 30px rgba(74, 111, 165, 0.1),
        0 4px 12px rgba(74, 111, 165, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    color: white;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(74, 111, 165, 0.2),
        0 8px 20px rgba(74, 111, 165, 0.15);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.card-icon {
    width: 100px;
    height: 100px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    /* color: white; */
    font-size: 1.75rem;
    box-shadow: 0 8px 20px rgba(74, 111, 165, 0.2);
    /* background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); */
    position: relative;
    overflow: hidden;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.card:hover .card-icon::before {
    left: 100%;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: white
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* .card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255, 126, 95, 0.3);
} */

.priority-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.priority-option {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 8px 25px rgba(74, 111, 165, 0.1),
        0 4px 12px rgba(74, 111, 165, 0.05);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.priority-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.05), rgba(255, 126, 95, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.priority-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 15px 35px rgba(74, 111, 165, 0.15),
        0 6px 15px rgba(74, 111, 165, 0.1);
}

.priority-option:hover::before {
    opacity: 1;
}

.priority-option.selected {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.03);
    box-shadow:
        0 12px 30px rgba(74, 111, 165, 0.2),
        0 5px 15px rgba(74, 111, 165, 0.15);
}

.priority-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 8px 20px rgba(74, 111, 165, 0.2);
    z-index: 1;
    position: relative;
    transition: transform 0.4s ease;
}

.priority-option:hover .priority-icon {
    transform: scale(1.1) rotate(5deg);
}

.priority-normal .priority-icon {
    background: linear-gradient(135deg, #718096, #4a5568);
}

.priority-vip .priority-icon {
    background: linear-gradient(135deg, #718096, #4a5568);
}

.priority-elderly .priority-icon {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.priority-pregnant .priority-icon {
    background: linear-gradient(135deg, #ed64a6, #d53f8c);
}

.priority-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.priority-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 111, 165, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
}

.modal.active {
    display: flex;
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(12px);
    }
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow: auto;
    box-shadow:
        0 30px 60px rgba(74, 111, 165, 0.4),
        0 15px 35px rgba(74, 111, 165, 0.3);
    animation: modalSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(74, 111, 165, 0.1);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-title i {
    color: var(--secondary);
}

.modal-close {
    background: rgba(74, 111, 165, 0.1);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--secondary);
    color: white;
    transform: rotate(90deg);
}

.ticket-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    box-shadow:
        0 30px 60px rgba(74, 111, 165, 0.4),
        0 15px 35px rgba(74, 111, 165, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
    animation: ticketAppear 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
}

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

.ticket-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(74, 111, 165, 0.1);
    position: relative;
}

.ticket-logo-container {
    position: relative;
    /* display: inline-block; */
    margin-bottom: 1.5rem;
}

.ticket-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 4px solid white;
    box-shadow:
        0 12px 24px rgba(74, 111, 165, 0.3),
        0 6px 12px rgba(74, 111, 165, 0.2);
    position: relative;
    z-index: 2;
}

.ticket-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.ticket-subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

.ticket-number {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 2.5rem 0;
    padding: 1.5rem;
    border-radius: 20px;
    letter-spacing: 3px;
    border: 2px solid rgba(74, 111, 165, 0.1);
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 8px 25px rgba(74, 111, 165, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ticket-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.ticket-info-item {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow:
        0 4px 15px rgba(74, 111, 165, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.ticket-info-item:hover {
    transform: translateY(-2px);
}

.ticket-info-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.ticket-info-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.priority-display {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.priority-normal {
    background: linear-gradient(135deg, #ebecee);
}

.priority-vip {
    background: linear-gradient(135deg, #f0f2f5 );
}

.priority-elderly {
    background: linear-gradient(135deg, #f0f2f5 );
}

.priority-pregnant {
   background: linear-gradient(135deg, #f0f2f5 );
}

.ticket-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed rgba(74, 111, 165, 0.2);
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    box-shadow:
        0 6px 20px rgba(74, 111, 165, 0.15),
        0 3px 10px rgba(74, 111, 165, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 30px rgba(74, 111, 165, 0.3),
        0 6px 15px rgba(74, 111, 165, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border: 1px solid rgba(74, 111, 165, 0.2);
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow:
        0 12px 30px rgba(74, 111, 165, 0.2),
        0 6px 15px rgba(74, 111, 165, 0.15);
}

.ticket-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* PRINT STYLES FOR SMALL TICKET PAPER */
@media print {
    @page {
        size: 80mm 150mm;
        margin: 2mm;
    }

    body * {
        visibility: hidden;
        margin: 0 !important;
        padding: 0 !important;
    }

    .ticket-content,
    .ticket-content * {
        visibility: visible;
    }

    .ticket-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 76mm !important;
        height: auto;
        max-width: 76mm !important;
        box-shadow: none !important;
        border: 1px solid #000 !important;
        padding: 3mm !important;
        margin: 0 !important;
        border-radius: 0 !important;
        page-break-inside: avoid;
        page-break-after: avoid;
        background: white !important;
    }

    .ticket-logo {
        width: 25mm !important;
        height: 25mm !important;
        margin: 0 auto 2mm !important;
    }

    .ticket-title {
        font-size: 4mm !important;
        margin-bottom: 1mm !important;
    }

    .ticket-subtitle {
        font-size: 2.5mm !important;
        margin-bottom: 2mm !important;
    }

    .ticket-number {
        font-size: 8mm !important;
        margin: 2mm 0 !important;
        padding: 2mm !important;
        letter-spacing: 1px !important;
        border: 1px solid #ccc !important;
        background: white !important;
        -webkit-text-fill-color: black !important;
        color: black !important;
    }

    .ticket-info {
        grid-template-columns: 1fr !important;
        gap: 1mm !important;
        margin-bottom: 2mm !important;
    }

    .ticket-info-item {
        padding: 1mm !important;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        background: transparent !important;
        border-bottom: 0.5px dashed #ccc !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .ticket-info-label {
        font-size: 2.5mm !important;
        margin-bottom: 0 !important;
        font-weight: 600;
    }

    .ticket-info-value {
        font-size: 2.5mm !important;
        text-align: right;
    }

    .priority-display {
        padding: 0.5mm 2mm !important;
        font-size: 2mm !important;
    }

    .ticket-footer {
        margin-top: 2mm !important;
        padding-top: 1mm !important;
        font-size: 2mm !important;
        border-top: 0.5px dashed #ccc !important;
    }

    .ticket-actions {
        display: none !important;
    }

    /* Ensure no extra pages */
    html,
    body {
        width: 80mm !important;
        height: 150mm !important;
        overflow: hidden !important;
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
    }

    .priority-options {
        grid-template-columns: 1fr;
    }

    .ticket-info {
        grid-template-columns: 1fr;
    }

    .ticket-actions {
        flex-direction: column;
    }

    .title {
        font-size: 2.25rem;
    }

    .modal-content,
    .ticket-content {
        padding: 2rem;
    }

    .header {
        padding: 2rem 1.5rem;
    }
}

/* Additional modern styling elements */
.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-bar input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(74, 111, 165, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
    background: white;
}

.logo1 {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
}
