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

:root {
    /* Vibrant Palette */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    --accent-color: #f43f5e;

    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: radial-gradient(#e0e7ff 1px, transparent 1px);
    background-size: 24px 24px;
}

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

header {
    text-align: center;
    margin-bottom: 50px;
}

header img {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

/* --- CARDS & SECTIONS --- */
.view-section {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.home-card {
    background: var(--card-bg);
    border: none;
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary-gradient);
}

.home-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.home-card h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.home-card.secondary::before {
    background: var(--secondary-gradient);
}

.home-card.secondary h2 {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- FORMS & INPUTS --- */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 1.1rem;
    background: #fdfdfd;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: #8b5cf6;
    background: white;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
    outline: none;
}

.checkbox-group {
    background: white;
    padding: 15px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.checkbox-group:hover {
    border-color: #8b5cf6;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: #6366f1;
    cursor: pointer;
}

/* --- BUTTONS --- */
.filter-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#btnShowOwner {
    border-color: #f59e0b;
    color: #d97706;
    background: #fffbeb;
}

#btnShowOwner:hover,
#btnShowOwner.active {
    background: #f59e0b;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

#btnShowDirect {
    border-color: #10b981;
    color: #059669;
    background: #ecfdf5;
}

#btnShowDirect:hover,
#btnShowDirect.active {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    letter-spacing: 0.5px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.4);
}

button:active {
    transform: scale(0.98);
}

.secondary-btn {
    background: white;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    box-shadow: none;
}

.secondary-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-back {
    background: none;
    box-shadow: none;
    color: var(--text-secondary);
    padding: 0;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-back:hover {
    background: none;
    box-shadow: none;
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* --- RESERVATION LIST --- */
.my-reservation-card {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.my-reservation-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.my-reservation-card strong {
    font-size: 1.2rem;
    color: var(--text-main);
    display: block;
    margin-bottom: 5px;
}

.btn-cancel {
    background: #fff1f2;
    color: #e11d48;
    box-shadow: none;
    padding: 10px 20px;
    font-size: 0.95rem;
}

.btn-cancel:hover {
    background: #ffe4e6;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

/* --- MODAL --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: auto;
}

@keyframes popIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-actions button {
    flex: 1;
}

/* --- UTILS --- */
.hidden {
    display: none !important;
}

#message {
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    margin-top: 30px;
    font-size: 1.1rem;
}

#message.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

#message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.loading {
    text-align: center;
    padding: 50px;
    color: var(--text-secondary);
    font-size: 1.2rem;
}


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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal {
        align-items: flex-start;
        padding: 10px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 95vh;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .container {
        margin: 20px auto;
        padding: 0 10px;
    }

    button {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .home-card {
        padding: 25px;
    }

    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        padding: 12px 16px;
        font-size: 1rem;
    }
}