/* Full Standalone UI/UX Styles for Student Activity Registration App */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --font-primary: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --amber-gold: #f59e0b;
    --slate-bg: #f8fafc;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: #f1f5f9;
    color: #0f172a;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* Fix Logo Size strictly so it never displays huge */
.school-logo {
    max-width: 65px !important;
    max-height: 65px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

.school-logo-sm {
    max-width: 36px !important;
    max-height: 36px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

/* Header Gradient */
.header-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 45%, #312e81 100%);
    color: #ffffff;
}

/* Modern Card Containers */
.ui-card {
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
    transition: all 0.2s ease;
}

.ui-card:hover {
    box-shadow: 0 10px 20px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
}

/* Inputs & Form Controls UI/UX Enhancement */
input[type="text"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    font-family: inherit;
    font-size: 15px !important;
    color: #1e293b;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.875rem;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
    outline: none !important;
}

/* Buttons Polish */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #ffffff;
    font-weight: 700;
    border-radius: 0.875rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-weight: 700;
    border-radius: 0.875rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    transition: all 0.2s ease;
}

.btn-amber:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

/* Status Badge Styles */
.badge-confirmed {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-pending {
    background-color: #fef9c3;
    color: #a16207;
    border: 1px solid #fef08a;
}

.badge-cancelled {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Ticket Card Design */
.ticket-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.ticket-divider {
    border-top: 2px dashed #cbd5e1;
    position: relative;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    #toast-container {
        left: auto;
        right: 1.5rem;
    }
}

.toast {
    animation: slideIn 0.3s ease-out forwards;
}

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

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    #pass-modal, #pass-modal * {
        visibility: visible;
    }
    #pass-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white !important;
    }
}
