/* =====================================================
   GLOBAL STYLES
===================================================== */

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #3a3a3a;
    background: linear-gradient(to bottom, #cdeffd, #fefae0);
    overflow-x: hidden;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border-radius: 10px;
    border: 1px solid #bbb;
    font-size: 1em;
    box-sizing: border-box;
}

/* =====================================================
   FLOATING CLOUDS
===================================================== */

.cloud {
    position: absolute;
    background: white;
    border-radius: 50px;
    opacity: 0.6;
    animation: float 60s linear infinite;
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    top: -30px;
}

.cloud::before { left: 10px; }
.cloud::after { left: 40px; }

.cloud.small {
    width: 80px;
    height: 40px;
    top: 100px;
    left: -100px;
    animation-duration: 50s;
}

.cloud.large {
    width: 140px;
    height: 60px;
    top: 200px;
    left: -200px;
    animation-duration: 80s;
}

@keyframes float {
    from { transform: translateX(-200px); }
    to { transform: translateX(120vw); }
}

/* =====================================================
   HEADER
===================================================== */

.header {
    text-align: center;
    padding: 50px 20px 30px;
}

.header h1 {
    font-size: 2.8em;
    color: #4a7c59;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2em;
    color: #5f7c6e;
}

/* =====================================================
   CARDS / CONTAINERS
===================================================== */

.container,
.dashboard {
    margin: 60px auto;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.container { width: 420px; }
.dashboard { width: 600px; }

.booking {
    background: #f1faee;
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.booking-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding-bottom: 10px;
}
/* =====================================================
   BUTTONS
===================================================== */

button {
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background-color: #88bdbc;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #6daaa8;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* =====================================================
   LINKS
===================================================== */

a {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: #4a7c59;
    font-weight: bold;
    text-decoration: none;
}

/* =====================================================
   NAVBAR / LANDING PAGE
===================================================== */

body.landing {
    min-height: 100vh;
    background: linear-gradient(to bottom, #dff5ff, #fef9e7);
}

.navbar {
    padding: 1rem 2rem;
    position: relative;
    z-index: 10;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #4f7f67;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: #4f7f67;
    padding: 0.5rem 1rem;
}

.nav-button {
    background-color: #8ec7c3;
    color: #1f3d35;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
}

/* =====================================================
   HERO SECTION
===================================================== */

.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    color: #4f7f67;
}

.hero p {
    margin-top: 1rem;
    color: #5f7f75;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.primary-btn,
.secondary-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
}

.primary-btn {
    background-color: #8ec7c3;
    color: #1f3d35;
}

.secondary-btn {
    border: 1px solid #8ec7c3;
    color: #4f7f67;
}

/* =====================================================
   AUTH / LOGIN
===================================================== */

.auth-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    max-width: 400px;
    margin: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.auth-card h2 {
    text-align: center;
    color: #4f7f67;
}

.auth-switch {
    margin-top: 1rem;
    text-align: center;
}

/* Password Toggle */

.password-wrapper {
    position: relative;
}

.password-wrapper input  { padding-right: 40px; }

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

/* =====================================================
   FLASH MESSAGES
===================================================== */

.flash {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-weight: bold;
}

.flash.error {
    background-color: #ffdddd;
    color: #a10000;
}

/* =====================================================
   IMAGES
===================================================== */

.logo-totoro {
    width: 100px;
    height: auto;
}
/* =====================================================
   CARD FADE-IN ANIMATION
===================================================== */

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

.container,
.auth-card {
    animation: fadeSlide 0.6s ease forwards;
}


/* =====================================================
   GLASS LOGIN CARD
===================================================== */

.container {
    width: 420px;
    margin: 60px auto;
    padding: 35px;

    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);

    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);

    position: relative;
    z-index: 2;
}


/* =====================================================
   INPUT FOCUS EFFECT
===================================================== */

input:focus {
    outline: none;
    border-color: #88bdbc;
    box-shadow: 0 0 8px rgba(136, 189, 188, 0.5);
    transition: 0.2s ease;
}


/* =====================================================
   BUTTON HOVER UPGRADE
===================================================== */

button:hover {
    background-color: #6daaa8;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}


/* =====================================================
   CLOUD DEPTH EFFECT
===================================================== */

.cloud {
    filter: blur(1px);
}

/* =====================================================
   ADMNIN DASHBOARD
===================================================== */


.admin-nav { margin-bottom: 20px; padding: 10px; background: rgba(255,255,255,0.5); border-radius: 8px; }
.admin-nav a { margin: 0 15px; text-decoration: none; font-weight: bold; color: #4a4a4a; }
.stats-container { display: flex; gap: 20px; justify-content: center; margin-top: 20px; }
.stat-card {
    background: white; padding: 20px; border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 150px;
    text-decoration: none; color: inherit; transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-number { display: block; font-size: 2.5em; font-weight: bold; color: #7db9b6; }
.stat-label { font-size: 1.1em; color: #666; }
.logout-link { color: #e63946; }

/* =====================================================
   CUSTOMER DASHBOARD
===================================================== */

.booking-form          { margin-top: 10px; }
.booking-form input[type="text"] { width: 90%; padding: 5px; margin-top: 5px; }
.booking-form button   { margin-top: 5px; }

/* =====================================================
   MANAGE BOOKINGS
===================================================== */

.delete-btn { color: #e63946; background: none; border: 1px solid #e63946; border-radius: 4px; cursor: pointer; padding: 2px 8px; margin-left: 10px; }
.delete-btn:hover { background: #e63946; color: white; }
.actions { margin-top: 10px; display: flex; align-items: center; }
.delete-form { display: inline; }