@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@100..900&display=swap");

body {
    font-family: "Noto Sans Bengali", sans-serif;
    background-color: #ffffff;
    color: #000000;
    height: 100%;
    overflow: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(88,88,88,0.24), rgba(70,69,69,0.301)), url("../../uploads/wallpaper.jpg");
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: -1;
}

.bg-light {
    background-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
}

.border {
    border: 1px solid #f0f1f2 !important;
    box-shadow: none !important;
}

.btn {
    transition: all ease-in-out 0.3s;
}

.btn:hover {
    background-color: #f0f1f275 !important;
}

a {
    text-decoration: none !important;
}

.rounded {
    border-radius: 0px !important;
}

.card-title {
    font-size: 1.5em;
}

.main {
    height: 98vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.main::-webkit-scrollbar {
    width: 0px;
}

.card-text {
    font-size: 1em;
}

@media (min-width: 1024px) {
    body.container {
        padding-left: 10em;
        padding-right: 10em;
    }
    .card-title {
        font-size: 2.5em;
    }
    .card-text {
        font-size: 1.2em;
    }
}

.steps-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
    transition: height 0.5s ease;
}

.step {
    position: absolute;
    top: 0;
    width: 100%;
    left: 100%;
    transition: left 0.5s ease;
    opacity: 1;
    visibility: visible;
    background: transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.step[style*="left: 0"] {
    left: 0% !important;
    position: relative;
}

.step:first-child {
    left: 0;
}

.step-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 transparent;
    padding-bottom: 20px;
    height: 100%;
}

.step-content::-webkit-scrollbar {
    width: 6px;
}

.step-content::-webkit-scrollbar-track {
    background: transparent;
}

.step-content::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 3px;
}

.step-content::-webkit-scrollbar-thumb:hover {
    background-color: #a8a8a8;
}

.step:nth-child(3) .step-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.guest-field {
    margin-bottom: 1rem;
    padding: 15px;
    border: 1px dashed #d1d5db;
    background: #fafafa;
    border-radius: 0;
    position: relative;
}

.guest-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e5e7eb;
}

.guest-field-title {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.guest-actions {
    display: flex;
    gap: 8px;
}

.guest-action-btn {
    background: none;
    border: 1px solid #d1d5db;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guest-edit-btn {
    color: #2563eb;
    border-color: #2563eb;
}

.guest-edit-btn:hover {
    background: #2563eb;
    color: white;
}

.guest-remove-btn {
    color: #dc2626;
    border-color: #dc2626;
}

.guest-remove-btn:hover {
    background: #dc2626;
    color: white;
}

.guest-field.editing {
    border-color: #2563eb;
    background: #f0f9ff;
}

#guestContainer {
    margin-top: 1rem;
}

.remove-guest {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #dc3545;
    color: #dc3545;
    background: white;
    transition: all 0.3s ease;
    border-radius: 0;
}

.remove-guest:hover {
    background: #dc3545;
    color: white;
}

.guest-name,
.guest-size {
    border-radius: 0 !important;
}

.guest-input-group {
    display: flex;
    gap: 10px;
    align-items: end;
}

.guest-input-field {
    flex: 1;
}

.guest-input-field label {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
    display: block;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #f0f1f2 !important;
    border-radius: 0px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    background: #f8f9fa;
    position: relative;
}

.payment-option:hover {
    background: #ffffff;
}

.payment-option.selected {
    border-color: #000000 !important;
    background: #ffffff;
}

.payment-icon {
    width: 40px;
    height: auto;
    margin-right: 10px;
}

.payment-details {
    display: none;
    margin-top: 10px;
}

.payment-details[style*="display: block"] {
    display: block !important;
}

.field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.nice-select.field-error {
    border-color: #dc3545 !important;
}

.form-control.field-error,
.form-select.field-error {
    border-color: #dc3545 !important;
}

.form-check-input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 1em;
    height: 1em;
    border: 1px solid #f0f1f2 !important;
    border-radius: 0 !important;
    background-color: transparent;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
}

.form-check-input[type="radio"]:checked {
    background-color: currentColor;
    border-color: currentColor;
}

.form-check-input[type="radio"]:checked::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.5em;
    height: 0.5em;
    background-color: white;
    border-radius: 0;
}

.form-check-input[type="radio"]:hover {
    border: 1px solid #f0f1f2 !important;
}

.form-check-input[type="radio"]:focus {
    outline: none;
    box-shadow: none !important;
}

.form-check-input:checked {
    background-color: black;
    border-color: black;
}

.form-check-input:checked:focus {
    box-shadow: none;
}

.form-check-input:checked::after {
    filter: invert(1);
}

#previewWrapper {
    position: relative;
    width: 150px;
    aspect-ratio: 1 / 1;
    margin: auto;
    overflow: hidden;
    border-radius: 0px;
    background: #f0f0f0;
    cursor: pointer;
}

#previewImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.3s ease;
}

#uploadOverlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    color: white;
    transition: opacity 240ms ease, visibility 240ms ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#previewWrapper:hover #uploadOverlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#uploadOverlay .icon {
    font-size: 1.6rem;
}

.nice-select.wide .list::-webkit-scrollbar {
    width: 0;
    height: 0;
    border-radius: 0px !important;
}

.nice-select.wide .list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#errorContainer {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 90%;
    border-radius: 0;
    border: 1px solid #dc3545;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.loading-text {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1.5s ease-in-out forwards;
}

.overlay-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    font-weight: 700;
    font-size: 18px;
}

.ticket-card {
    max-width: 420px;
    margin: 24px auto;
    border-radius: 0;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
    overflow: hidden;
    position: relative;
}

.ticket-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg,#f6f7ff 0%, #eef2ff 100%);
    position: relative;
}

.ticket-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.ticket-title {
    line-height: 1.15;
    text-align: left;
}

.ticket-event {
    font-weight: 700;
    font-size: 16px;
    color: #222;
    text-align: left;
}

.ticket-sub {
    font-size: 12px;
    color: #666;
    text-align: left;
}

.badge-verified {
    margin-left: auto;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 0;
    background: #10b981;
    color: #fff;
    font-weight: 600;
}

.ticket-body {
    padding: 16px;
}

.ticket-user {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ticket-avatar {
    width: 64px;
    height: 64px;
    border-radius: 0;
    object-fit: cover;
    border: 1px solid #eee;
}

.ticket-user-info .user-name {
    font-weight: 700;
    font-size: 16px;
    color: #111;
    text-align: left;
}

.ticket-user-info .user-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #555;
    font-size: 12px;
    margin-top: 4px;
}

.ticket-code {
    margin-top: 14px;
    padding: 12px;
    border: 1px dashed #c7d2fe;
    border-radius: 0;
    background: #f8fafc;
}

.code-label {
    font-size: 12px;
    color: #6b7280;
}

.code-value {
    margin-top: 6px;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 16px;
    color: #111;
    word-break: break-all;
    text-align: left;
}

.ticket-footer {
    padding: 12px 16px;
    border-top: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

.ticket-actions {
    max-width: 420px;
    margin: 10px auto 0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-solid {
    padding: 10px 14px;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    background: #4f46e5;
    color: #fff;
    border: 1px solid #4f46e5;
}

.btn-solid:active {
    transform: scale(.98);
}

.guest-list {
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed #e5e7eb;
    border-radius: 0;
    background: #fafafa;
}

.guest-list h6 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.guest-item {
    font-size: 12px;
    color: #4b5563;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #eee;
    padding: 6px 0;
}

.guest-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .steps-wrapper {
        min-height: 500px;
    }
    .guest-field .row {
        margin: 0;
    }
    .guest-input-group {
        flex-direction: column;
        gap: 8px;
    }
    .guest-input-field {
        width: 100%;
    }
    .payment-option {
        padding: 8px 12px;
    }
    .guest-actions {
        flex-direction: column;
        gap: 4px;
    }
    .guest-action-btn {
        width: 100%;
        text-align: center;
    }
    .step-content {
        padding: 10px 5px;
    }
}

.form-control,
.form-select,
.nice-select {
    margin-bottom: 0.5rem;
}

.guest-field select {
    width: 100% !important;
}

.guest-edit-mode .guest-display {
    display: none !important;
}

.guest-edit-mode .guest-edit-form {
    display: block !important;
}

.guest-edit-form {
    display: none;
}

.step-content > * {
    max-width: 100%;
}

.step-content .card,
.step-content form {
    max-width: 100%;
    overflow: visible;
}

