body {
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    color: #111827;
}

.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.brand-logo {
    margin-bottom: 24px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 32px;
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
}

.form-control {
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    font-size: 16px; /* Prevent zoom on mobile */
}

.form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.btn-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
    border-radius: 8px;
    padding: 14px;
    font-weight: 600;
    width: 100%;
    margin-top: 24px;
}

.btn-primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
}

.password-toggle {
    cursor: pointer;
    color: #9ca3af;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.footer-text {
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    margin-top: auto;
    padding-top: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Validation Styles */
.is-invalid {
    border-color: #ef4444 !important;
}

.invalid-feedback {
    display: block;
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

/* App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    /* border-bottom: 1px solid #f3f4f6; */
}

.logout-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

/* Event Card */
.event-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin: 20px;
    background: white;
    position: relative;
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #1f2937; /* Fallback color */
}

.event-details {
    padding: 20px;
}

.event-title {
    font-size: 20px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    margin-bottom: 4px;
    line-height: 1.2;
}

.event-subtitle {
    font-family: serif; /* Trying to match "Minimorum" style */
    font-style: italic;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    margin-bottom: 16px;
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.live-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.info-row {
    display: flex;
    margin-bottom: 24px;
}

.info-item {
    width: 50%;
}

.info-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
}

.info-value i {
    margin-right: 8px;
    color: #4f46e5;
}

.btn-scan {
    background-color: #4f46e5;
    color: white;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-scan i {
    margin-right: 8px;
    font-size: 20px;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70vh;
    text-align: center;
    padding: 40px;
}

.empty-icon {
    font-size: 64px;
    color: #e5e7eb;
    margin-bottom: 24px;
}

.empty-text {
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.empty-subtext {
    font-size: 14px;
    color: #9ca3af;
}

/* Scanner Overlay */
.scanner-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.scanner-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-scanner {
    color: white;
    font-size: 24px;
    background: rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.scan-frame {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

#reader {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Result Screens */
.result-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: white;
}

.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.result-icon.success {
    background-color: #10b981;
    color: white;
    font-size: 40px;
}

.result-icon.error {
    background-color: #ef4444;
    color: white;
    font-size: 40px;
}

.result-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 32px;
}

.text-success-custom {
    color: #10b981;
}

.text-error-custom {
    color: #ef4444;
}

.ticket-info {
    width: 100%;
    background: #f9fafb; /* Or very light pink for error */
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.ticket-label {
    color: #6b7280;
}

.ticket-value {
    font-weight: 600;
    color: #111827;
}

.btn-action {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    border: none;
}

.btn-primary-action {
    background-color: #4f46e5;
    color: white;
}

.btn-outline-action {
    background-color: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

/* Modal Customization */
.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-footer {
    border-top: none;
    padding: 0 20px 20px;
}

.modal-header {
    border-bottom: none;
    padding: 20px 20px 0;
}
