:root {
    --primary: #00b4d8;
    /* Ocean Blue */
    --secondary: #90e0ef;
    /* Sky Blue */
    --accent: #caf0f8;
    /* Light Water */
    --highlight: #ffb703;
    /* Sun Gold */
    --text: #023047;
    /* Deep Navy */
    --text-muted: #219ebc;
    /* Medium Blue */
    --bg: #fdf0d5;
    /* Warm Sand */
    --glass: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    color: var(--text);
    min-height: 100vh;
    padding: 2rem;
    line-height: 1.6;
    position: relative;
    background: #fdf0d5;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('bg-coloso.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: blur(6px) brightness(1.1);
    opacity: 0.2;
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px -10px rgba(2, 48, 71, 0.15);
    margin-bottom: 2rem;
}

h1,
h2,
h3 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.status-completed {
    background: rgba(0, 255, 127, 0.2);
    color: #00ff7f;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

/* Ensure Flatpickr hidden inputs don't mess up layout */
.flatpickr-input[type="hidden"] {
    display: none;
}

.flatpickr-calendar {
    box-shadow: 0 15px 50px rgba(2, 48, 71, 0.2) !important;
    border: none !important;
    border-radius: 15px !important;
    background: #ffffff !important;
}

input[type="date"] {
    position: relative;
    cursor: pointer;
}

/* Custom Calendar Icon Color (where supported) */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(15%) sepia(95%) saturate(793%) hue-rotate(164deg) brightness(97%) contrast(98%);
    cursor: pointer;
    background-color: var(--accent);
    padding: 5px;
    border-radius: 5px;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
    transform: translateY(-1px);
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--highlight), #ff9f1c);
    color: #023047;
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 183, 3, 0.5);
}

.traveler-section {
    border-left: 4px solid var(--highlight);
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.grid-dates {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.grid-dates .form-group {
    flex: 1;
    margin-bottom: 0;
    min-width: 150px;
}

/* Custom Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 48, 71, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0;
}

.modal-body {
    margin-bottom: 2rem;
    color: var(--text-muted);
    line-height: 1.5;
    white-space: pre-line;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.modal-btn-confirm {
    background: var(--primary);
    color: white;
}

.modal-btn-confirm:hover {
    background: #022b40;
    transform: translateY(-2px);
}

.modal-btn-cancel {
    background: rgba(233, 69, 96, 0.1);
    color: #e94560;
}

.modal-btn-cancel:hover {
    background: rgba(233, 69, 96, 0.2);
}

.nights-badge {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    margin-bottom: 0px;
    box-shadow: 0 4px 10px rgba(0, 180, 216, 0.2);
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 60px;
}

.copy-btn:hover {
    background: var(--highlight);
    color: var(--text);
}

.copy-btn.copied {
    background: #00ff7f;
    color: #023047;
}

.copy-link-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .form-group label {
    text-align: right;
    display: block;
}

[dir="rtl"] .modal-footer {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    .glass-card {
        padding: 1.5rem;
    }
}