@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

/* ============================================
   BASE STYLES
   ============================================ */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c5a47e; /* Gold/Beige accent */
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b08d55;
}

/* ============================================
   REACT-LIKE SMOOTH TRANSITIONS
   ============================================ */

/* Page transition wrapper */
.page-transition {
    animation: pageIn 0.4s ease-out;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered fade-in for lists */
.stagger-item {
    opacity: 0;
    animation: staggerIn 0.5s ease-out forwards;
}

@keyframes staggerIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth hover effects for cards */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button press effect */
.btn-press {
    transition: all 0.15s ease;
}

.btn-press:active {
    transform: scale(0.97);
}

/* ============================================
   MODAL SYSTEM
   ============================================ */

/* Modal overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 1;
    visibility: visible;
}

/* Modal content */
.modal-content {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 32rem;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-content.lg {
    max-width: 42rem;
}

.modal-content.sm {
    max-width: 24rem;
}

/* Modal header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.modal-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: #9ca3af;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Modal body */
.modal-body {
    padding: 1.5rem;
}

/* Modal footer */
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
    border-radius: 0 0 1rem 1rem;
}

/* ============================================
   TOAST NOTIFICATION SYSTEM
   ============================================ */

.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border-left: 4px solid;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.success .toast-icon {
    color: #10b981;
    background: #d1fae5;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.error .toast-icon {
    color: #ef4444;
    background: #fee2e2;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.warning .toast-icon {
    color: #f59e0b;
    background: #fef3c7;
}

.toast.info {
    border-left-color: #3b82f6;
}

.toast.info .toast-icon {
    color: #3b82f6;
    background: #dbeafe;
}

.toast-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.toast-close {
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0.25rem;
}

.toast-close:hover {
    color: #374151;
}

/* ============================================
   CONFIRM DIALOG
   ============================================ */

.confirm-dialog .modal-content {
    max-width: 28rem;
    text-align: center;
}

.confirm-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
}

.confirm-icon.warning {
    background: #fef3c7;
    color: #f59e0b;
}

.confirm-icon.danger {
    background: #fee2e2;
    color: #ef4444;
}

.confirm-icon.info {
    background: #dbeafe;
    color: #3b82f6;
}

.confirm-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.confirm-message {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(197, 164, 126, 0.3);
}

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

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

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

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

.btn-ghost {
    background: transparent;
    color: #6b7280;
}

.btn-ghost:hover {
    background: #f3f4f6;
    color: #374151;
}

/* ============================================
   MODERN FORM STYLES (Framework-Quality)
   ============================================ */

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

/* Base input styling */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    background: #fafafa;
    color: #1f2937;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.form-input:focus {
    border-color: #c5a47e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(197, 164, 126, 0.12), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* ============================================
   MODERN SELECT/DROPDOWN STYLES
   ============================================ */

.form-select {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    background-color: #fafafa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    cursor: pointer;
    color: #1f2937;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-select:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.form-select:focus {
    border-color: #c5a47e;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(197, 164, 126, 0.12), 0 1px 2px rgba(0, 0, 0, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%23c5a47e'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.form-select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Select option styling (for supported browsers) */
.form-select option {
    padding: 0.75rem;
    background: white;
    color: #1f2937;
}

.form-select option:hover,
.form-select option:focus,
.form-select option:checked {
    background: linear-gradient(#f3ebe0, #f3ebe0);
    color: #1f2937;
}

/* ============================================
   MODERN DATE INPUT STYLES
   ============================================ */

.form-input[type="date"],
.form-input[type="datetime-local"],
.form-input[type="time"],
.form-input[type="month"],
.form-input[type="week"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"] {
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    min-height: 3rem;
    background-color: #fafafa;
    color-scheme: light;
    position: relative;
}

/* Style the date picker calendar icon */
.form-input[type="date"]::-webkit-calendar-picker-indicator,
.form-input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.form-input[type="time"]::-webkit-clock-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-clock-picker-indicator {
    cursor: pointer;
    padding: 0.5rem;
    margin-right: -0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    opacity: 0.6;
    filter: none;
    width: 1.5rem;
    height: 1.5rem;
}

.form-input[type="date"]::-webkit-calendar-picker-indicator:hover,
.form-input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
.form-input[type="time"]::-webkit-clock-picker-indicator:hover,
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-clock-picker-indicator:hover {
    background: rgba(197, 164, 126, 0.2);
    opacity: 1;
}

.form-input[type="date"]:focus::-webkit-calendar-picker-indicator,
.form-input[type="datetime-local"]:focus::-webkit-calendar-picker-indicator,
.form-input[type="time"]:focus::-webkit-clock-picker-indicator,
input[type="date"]:focus::-webkit-calendar-picker-indicator,
input[type="datetime-local"]:focus::-webkit-calendar-picker-indicator,
input[type="time"]:focus::-webkit-clock-picker-indicator {
    opacity: 1;
    filter: sepia(1) hue-rotate(-10deg) saturate(2);
}

/* Date input wrapper for enhanced styling */
.date-input-wrapper {
    position: relative;
}

.date-input-wrapper .form-input {
    cursor: pointer;
}

.date-input-wrapper::before {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.date-input-wrapper:hover::before {
    opacity: 0.8;
}

.date-input-wrapper:focus-within::before {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23c5a47e'%3E%3Cpath fill-rule='evenodd' d='M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.date-input-wrapper .form-input[type="date"]::-webkit-calendar-picker-indicator,
.date-input-wrapper .form-input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ============================================
   MODERN NUMBER INPUT STYLES
   ============================================ */

.form-input[type="number"],
input[type="number"] {
    -moz-appearance: textfield;
    padding-right: 0.5rem;
}

.form-input[type="number"]::-webkit-outer-spin-button,
.form-input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Custom number input with spinners */
.number-input-wrapper {
    position: relative;
    display: inline-flex;
    width: 100%;
}

.number-input-wrapper .form-input {
    text-align: center;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.number-input-wrapper button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: calc(100% - 4px);
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

.number-input-wrapper button:hover {
    background: #f3f4f6;
    color: #374151;
}

.number-input-wrapper button:first-of-type {
    left: 2px;
}

.number-input-wrapper button:last-of-type {
    right: 2px;
}

/* ============================================
   MODERN FILE INPUT STYLES
   ============================================ */

.form-input[type="file"],
input[type="file"] {
    padding: 0.5rem;
    background: #fafafa;
    border: 1.5px dashed #e5e7eb;
    cursor: pointer;
    position: relative;
}

.form-input[type="file"]:hover,
input[type="file"]:hover {
    border-color: #c5a47e;
    background: #fefdfb;
}

.form-input[type="file"]:focus,
input[type="file"]:focus {
    border-style: solid;
    border-color: #c5a47e;
    background: #ffffff;
}

.form-input[type="file"]::file-selector-button,
input[type="file"]::file-selector-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, #c5a47e 0%, #b08d55 100%);
    color: white;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    margin-right: 0.75rem;
    transition: all 0.2s ease;
}

.form-input[type="file"]::file-selector-button:hover,
input[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, #b08d55 0%, #9a7a47 100%);
}

/* ============================================
   MODERN CHECKBOX STYLES
   ============================================ */

.form-checkbox,
input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    border: 1.5px solid #d1d5db;
    border-radius: 0.3125rem;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    flex-shrink: 0;
}

.form-checkbox:hover,
input[type="checkbox"]:hover {
    border-color: #c5a47e;
    background: #fefdfb;
}

.form-checkbox:checked,
input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #c5a47e 0%, #b08d55 100%);
    border-color: #c5a47e;
}

.form-checkbox:checked::after,
input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-checkbox:focus,
input[type="checkbox"]:focus {
    box-shadow: 0 0 0 4px rgba(197, 164, 126, 0.2);
    border-color: #c5a47e;
    outline: none;
}

/* ============================================
   MODERN RADIO BUTTON STYLES
   ============================================ */

.form-radio,
input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    border: 1.5px solid #d1d5db;
    border-radius: 50%;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    flex-shrink: 0;
}

.form-radio:hover,
input[type="radio"]:hover {
    border-color: #c5a47e;
    background: #fefdfb;
}

.form-radio:checked,
input[type="radio"]:checked {
    border-color: #c5a47e;
    background: #fafafa;
}

.form-radio:checked::after,
input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c5a47e 0%, #b08d55 100%);
}

.form-radio:focus,
input[type="radio"]:focus {
    box-shadow: 0 0 0 4px rgba(197, 164, 126, 0.2);
    border-color: #c5a47e;
    outline: none;
}

/* ============================================
   MODERN TEXTAREA STYLES
   ============================================ */

textarea.form-input,
textarea {
    min-height: 6rem;
    resize: vertical;
    line-height: 1.5;
}

textarea.form-input:focus,
textarea:focus {
    border-color: #c5a47e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(197, 164, 126, 0.12), 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ============================================
   FORM INPUT WITH ICON
   ============================================ */

.input-with-icon {
    position: relative;
}

.input-with-icon .form-input {
    padding-left: 2.75rem;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: color 0.2s ease;
    pointer-events: none;
}

.input-with-icon .form-input:focus + .input-icon,
.input-with-icon:focus-within .input-icon {
    color: #c5a47e;
}

/* ============================================
   FORM INPUT SIZES
   ============================================ */

.form-input-sm,
.form-select-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 0.5rem;
}

.form-input-lg,
.form-select-lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-radius: 0.75rem;
}

/* ============================================
   CODE INPUT (OTP/2FA) STYLES
   ============================================ */

.form-input-code {
    text-align: center;
    font-size: 1.5rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', ui-monospace, monospace;
    letter-spacing: 0.5em;
    padding: 1rem 1.25rem;
    font-weight: 600;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
    border: 2px solid #e5e7eb;
}

.form-input-code:hover {
    border-color: #d1d5db;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

.form-input-code:focus {
    border-color: #c5a47e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(197, 164, 126, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-input-code::placeholder {
    letter-spacing: 0.3em;
    color: #d1d5db;
}

/* ============================================
   FORM VALIDATION STATES
   ============================================ */

.form-input.is-valid,
.form-select.is-valid {
    border-color: #10b981;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.125rem;
    padding-right: 2.5rem;
}

.form-input.is-invalid,
.form-select.is-invalid {
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%23ef4444'%3E%3Cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.125rem;
    padding-right: 2.5rem;
}

.form-input.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.form-input.is-valid:focus,
.form-select.is-valid:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

/* ============================================
   PASSWORD HELP TEXT STYLES
   ============================================ */

.password-help-text ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.password-help-text ul li {
    line-height: 1.4;
}

/* ============================================
   FLOATING LABEL INPUTS
   ============================================ */

.floating-label-group {
    position: relative;
}

.floating-label-group .form-input {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.floating-label-group .floating-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9375rem;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.floating-label-group .form-input:focus ~ .floating-label,
.floating-label-group .form-input:not(:placeholder-shown) ~ .floating-label {
    top: 0.625rem;
    transform: translateY(0);
    font-size: 0.6875rem;
    font-weight: 600;
    color: #c5a47e;
    letter-spacing: 0.02em;
}

/* ============================================
   SELECT2-LIKE ENHANCED SELECT
   ============================================ */

.select-enhanced {
    position: relative;
}

.select-enhanced .form-select {
    padding-right: 3rem;
}

.select-enhanced::after {
    content: '';
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    width: 2.5rem;
    background: linear-gradient(90deg, transparent, #fafafa 50%);
    border-radius: 0 0.625rem 0.625rem 0;
    pointer-events: none;
}

/* ============================================
   TAILWIND-STYLE INPUT CLASSES (for templates)
   ============================================ */

/* These classes match the inline Tailwind classes used in Django forms */
.w-full.px-4.py-3.rounded-lg.border.border-gray-300,
select.w-full.px-4.py-3.rounded-lg.border.border-gray-300,
input.w-full.px-4.py-3.rounded-lg.border.border-gray-300,
textarea.w-full.px-4.py-3.rounded-lg.border.border-gray-300 {
    border: 1.5px solid #e5e7eb;
    background: #fafafa;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.w-full.px-4.py-3.rounded-lg.border.border-gray-300:hover,
select.w-full.px-4.py-3.rounded-lg.border.border-gray-300:hover,
input.w-full.px-4.py-3.rounded-lg.border.border-gray-300:hover,
textarea.w-full.px-4.py-3.rounded-lg.border.border-gray-300:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.w-full.px-4.py-3.rounded-lg.border.border-gray-300:focus,
select.w-full.px-4.py-3.rounded-lg.border.border-gray-300:focus,
input.w-full.px-4.py-3.rounded-lg.border.border-gray-300:focus,
textarea.w-full.px-4.py-3.rounded-lg.border.border-gray-300:focus {
    background: #ffffff;
}

/* Enhanced select styling for Tailwind classes */
select.w-full.px-4.py-3.rounded-lg.border {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.75rem;
    cursor: pointer;
}

select.w-full.px-4.py-3.rounded-lg.border:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%23c5a47e'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* Enhanced date input styling for Tailwind classes */
input[type="date"].w-full.px-4.py-3.rounded-lg.border,
input[type="datetime-local"].w-full.px-4.py-3.rounded-lg.border,
input[type="time"].w-full.px-4.py-3.rounded-lg.border {
    min-height: 3rem;
    padding-right: 3rem;
    color-scheme: light;
}

/* Style native date picker icon for Tailwind classes */
input[type="date"].w-full.px-4.py-3.rounded-lg.border::-webkit-calendar-picker-indicator,
input[type="datetime-local"].w-full.px-4.py-3.rounded-lg.border::-webkit-calendar-picker-indicator,
input[type="time"].w-full.px-4.py-3.rounded-lg.border::-webkit-clock-picker-indicator {
    cursor: pointer;
    padding: 0.5rem;
    margin-right: -0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    opacity: 0.6;
    width: 1.5rem;
    height: 1.5rem;
}

input[type="date"].w-full.px-4.py-3.rounded-lg.border::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"].w-full.px-4.py-3.rounded-lg.border::-webkit-calendar-picker-indicator:hover,
input[type="time"].w-full.px-4.py-3.rounded-lg.border::-webkit-clock-picker-indicator:hover {
    background: rgba(197, 164, 126, 0.2);
    opacity: 1;
}

input[type="date"].w-full.px-4.py-3.rounded-lg.border:focus::-webkit-calendar-picker-indicator,
input[type="datetime-local"].w-full.px-4.py-3.rounded-lg.border:focus::-webkit-calendar-picker-indicator,
input[type="time"].w-full.px-4.py-3.rounded-lg.border:focus::-webkit-clock-picker-indicator {
    opacity: 1;
    filter: sepia(1) hue-rotate(-10deg) saturate(2);
}

/* Enhanced file input for Tailwind classes */
input[type="file"].w-full.px-4.py-3.rounded-lg.border,
input[type="file"].form-input {
    padding: 0.5rem;
    border-style: dashed;
}

input[type="file"].w-full.px-4.py-3.rounded-lg.border:hover,
input[type="file"].form-input:hover {
    border-color: #c5a47e;
    background: #fefdfb;
}

input[type="file"].w-full.px-4.py-3.rounded-lg.border::file-selector-button,
input[type="file"].form-input::file-selector-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, #c5a47e 0%, #b08d55 100%);
    color: white;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    margin-right: 0.75rem;
    transition: all 0.2s ease;
}

input[type="file"].w-full.px-4.py-3.rounded-lg.border::file-selector-button:hover,
input[type="file"].form-input::file-selector-button:hover {
    background: linear-gradient(135deg, #b08d55 0%, #9a7a47 100%);
}

/* ============================================
   LOADING STATES
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.375rem;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   TABLE IMPROVEMENTS
   ============================================ */

.table-row-enter {
    animation: tableRowIn 0.3s ease-out;
}

@keyframes tableRowIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   STATUS BADGES WITH PULSE
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================================
   CONTENT TRANSITIONS
   ============================================ */

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-in {
    animation: scaleIn 0.2s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ============================================
   COMPONENT: GUEST STEPPER
   ============================================ */

.guest-stepper-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    background: white;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    outline: none;
}

.guest-stepper-btn:hover:not(:disabled) {
    border-color: #c5a47e;
    color: #c5a47e;
    background: #fdfbf7;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.guest-stepper-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.guest-stepper-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(197, 164, 126, 0.3);
    border-color: #c5a47e;
}

.guest-stepper-btn:disabled {
    background: #f3f4f6;
    border-color: transparent;
    color: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Input styling within stepper */
.guest-stepper input {
    font-weight: 600;
    font-size: 1.125rem;
    color: #1a1a1a;
}
