/* TechCafe Booking - Modal Styles */

/* Booking Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-content h3 i {
    color: #dc2626;
}

.completion-message {
    text-align: center;
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 1rem;
}

#completionClosure {
    cursor: pointer;
}

#completionClosure:focus {
    outline: none;
    border-color: #dc2626;
}

/* Swipe Verification Styles */
.swipe-verification-container {
    margin: 25px 0;
}

.swipe-instruction {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 15px 0;
}

.swipe-slider {
    width: 100%;
    margin: 0 auto;
}

.swipe-track {
    position: relative;
    width: 100%;
    height: 50px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
}

.swipe-handle {
    position: absolute;
    left: 4px;
    top: 4px;
    width: calc(33.33% - 8px);
    height: 42px;
    background: #dc2626;
    border-radius: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    cursor: grab;
    z-index: 2;
    transition: left 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.swipe-handle:active {
    cursor: grabbing;
}

.swipe-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

/* Disabled button style */
.btn-disabled {
    background: #9ca3af !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.btn-disabled:hover {
    background: #9ca3af !important;
    transform: none !important;
}

.privacy-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    margin: 0 0 20px 0;
    color: #856404;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-container {
    margin-bottom: 20px;
    position: relative;
}

.input-container input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.input-container input:focus {
    outline: none;
    border-color: #dc2626;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    touch-action: manipulation; /* Optimize for touch interactions */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1); /* Subtle tap feedback */
}

.btn-primary {
    background: #dc2626;
    color: white;
}

.btn-primary:hover {
    background: #b91c1c;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 120px;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-secondary:active {
    background: #374151;
    transform: translateY(1px);
}

/* Full width for Phone devices only */
.device-phone .btn-secondary {
    width: 100%;
}


/* ========================================
   BOOKING CONFIRMATION MODAL STYLES
   ======================================== */

.confirmation-modal {
    text-align: center;
    max-width: 450px;
    padding: 40px 30px;
}

.confirmation-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.confirmation-header i {
    font-size: 2.5rem;
    color: #10b981;
    margin: 0;
}

.confirmation-header h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.confirmation-message {
    color: #4b5563;
    font-size: 1rem;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.reference-section {
    margin: 25px 0;
}

.reference-label {
    display: block;
    font-weight: bold;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 10px;
}

.reference-id-box {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 10px 0;
    display: inline-block;
}

.reference-id-box span {
    font-size: 2rem;
    font-weight: bold;
    color: #dc2626;
    letter-spacing: 1px;
}

.reference-note {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 10px 0 0 0;
    font-style: italic;
}

.confirmation-buttons {
    margin-top: 30px;
}

.btn-confirm {
    background: #dc2626;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 80px;
}

.btn-confirm:hover {
    background: #b91c1c;
}

.btn-confirm:active {
    background: #991b1b;
    transform: translateY(1px);
}

/* Cancellation Modal Styles */
.cancellation-modal {
    max-width: 450px;
}

.cancellation-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.cancellation-header i {
    font-size: 2rem;
    color: #6b7280;
}

.cancellation-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.5rem;
}

.cancellation-message {
    text-align: center;
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 1rem;
}

.cancellation-buttons {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Stack vertically for Phone devices only */
.device-phone .cancellation-buttons {
    flex-direction: column;
    width: 100%;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 120px;
}

/* Full width for Phone devices only */
.device-phone .btn-danger {
    width: 100%;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-danger:active {
    background: #991b1b;
    transform: translateY(1px);
}

.btn-success {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 150px;
}

/* Full width for Phone devices only */
.device-phone .btn-success {
    width: 100%;
}

.btn-success:hover {
    background: #059669;
}

.btn-success:active {
    background: #047857;
    transform: translateY(1px);
}

/* Admin Password Modal Styles */
.admin-password-modal {
    max-width: 400px;
}

.admin-password-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-password-header i {
    font-size: 2rem;
    color: #dc2626;
}

.admin-password-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.5rem;
}

.admin-password-message {
    text-align: center;
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 1rem;
}

.password-error {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

.password-error i {
    font-size: 1rem;
}
