/* Zoo Melaka Color Theme */
:root {
    --primary-color: #016B61;
    /* Teal hijau gelap */
    --secondary-color: #70B2B2;
    /* Teal sederhana */
    --tertiary-color: #9ECFD4;
    /* Teal cerah */
    --accent-color: #E5E9C5;
    /* Krem */
    --dark-text: #2C3E3F;
    --light-text: #ffffff;
    --warning-color: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
}

/* Header & Navigation */
.header {
    background-color: var(--accent-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    inset-block-start: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--warning-color);
    color: var(--dark-text);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.pricing-tab.active {
    background: var(--primary-color);
    color: white;
}


/* Hero Section */
.hero {
    position: relative;
    block-size: 550px;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 100%;
    block-size: 100%;
    background-image: url('../images/hero-pattern.svg');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--light-text);
    z-index: 1;
    padding: 0 20px;
}

.hero h1 {
    font-size: 60px;
    margin-block-end: 20px;
    color: var(--warning-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 24px;
    margin-block-end: 30px;
}

/* Pricing Section */
.pricing-section { 
    position: relative;
    block-size: 550px;
    background-image: url('../images/zoo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-block-end: 50px;
    border-block-end: 3px solid var(--primary-color);
}

.pricing-tab {
    padding: 15px 50px;
    background-color: var(--tertiary-color);
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: var(--dark-text);
    transition: all 0.3s;
}

.pricing-tab.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.pricing-tab:hover {
    background-color: var(--secondary-color);
}

.pricing-header {
    display: flex;
    background-color: var(--primary-color);
    color: var(--warning-color);
    padding: 20px;
    border-radius: 10px 10px 0 0;
    margin-block-end: 0;
}

.pricing-header>div {
    flex: 1;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

.pricing-header .category {
    text-align: start;
    padding-inline-start: 20px;
}

.pricing-row {
    display: flex;
    padding: 25px 20px;
    background-color: white;
    border-block-end: 1px solid #e0e0e0;
    transition: background-color 0.3s;
}

.pricing-row:hover {
    background-color: var(--accent-color);
}

.pricing-row:last-child {
    border-radius: 0 0 10px 10px;
}

.pricing-row>div {
    flex: 1;
    text-align: center;
    font-size: 16px;
}

.pricing-row .category {
    text-align: start;
    font-weight: 600;
    color: var(--primary-color);
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-block-start: 50px;
}

.feature-card {
    background: linear-gradient(135deg, var(--tertiary-color) 0%, var(--accent-color) 100%);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(1, 107, 97, 0.2);
}

.feature-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-block-end: 20px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-block-end: 15px;
    font-size: 22px;
}

/* Booking Section */
.booking-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
}

.booking-form {
    background-color: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-inline-size: 800px;
    margin: 50px auto;
}

.form-group {
    margin-block-end: 25px;
}

.form-group label {
    display: block;
    margin-block-end: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group select {
    inline-size: 100%;
    padding: 12px;
    border: 2px solid var(--tertiary-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-block-end: 40px;
}

.footer-section h3 {
    color: var(--warning-color);
    margin-block-end: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-block-end: 10px;
}

.footer-section a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--warning-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-block-start: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    inline-size: 40px;
    block-size: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--warning-color);
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-block-start: 30px;
    border-block-start: 1px solid var(--secondary-color);
}

/* Utility Classes */
.container {
    max-inline-size: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 42px;
    color: var(--primary-color);
    margin-block-end: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--dark-text);
    margin-block-end: 40px;
    max-inline-size: 700px;
    margin-inline-start: auto;
    margin-inline-end: auto;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-block-start: 40px;
}

.mb-4 {
    margin-block-end: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .pricing-header,
    .pricing-row {
        flex-direction: column;
        gap: 15px;
    }

    .pricing-header>div,
    .pricing-row>div {
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-form {
        padding: 30px 20px;
    }
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-block-end: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin Panel Styles */
.admin-sidebar {
    background-color: var(--primary-color);
    color: var(--light-text);
    min-block-size: 100vh;
    padding: 20px;
}

.admin-content {
    padding: 30px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-block-end: 40px;
}

.dashboard-card {
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    padding: 30px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    font-size: 36px;
    margin-block-end: 10px;
}

.table {
    inline-size: 100%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table thead {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.table th,
.table td {
    padding: 15px;
    text-align: start;
}

.table tbody tr:hover {
    background-color: var(--accent-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset-inline-start: 0;
    inset-block-start: 0;
    inline-size: 100%;
    block-size: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content-wrapper {
    position: relative;
    inline-size: 90%;
    max-inline-size: 1000px;
    margin: 50px auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    animation: slideDown 0.4s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 28px;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 35px;
    cursor: pointer;
    transition: transform 0.3s;
    line-height: 1;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.slideshow-container {
    position: relative;
    background: #000;
    min-block-size: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    display: none;
    inline-size: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    inline-size: 100%;
    block-size: 500px;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
}

.slide-caption h3 {
    font-size: 24px;
    margin-block-end: 10px;
}

.prev-slide,
.next-slide {
    position: absolute;
    inset-block-start: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.prev-slide {
    inset-inline-start: 20px;
    border-radius: 0 50px 50px 0;
}

.next-slide {
    inset-inline-end: 20px;
    border-radius: 50px 0 0 50px;
}

.prev-slide:hover,
.next-slide:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slide-dots {
    text-align: center;
    padding: 20px;
    background: white;
}

.dot {
    block-size: 12px;
    inline-size: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.dot:hover {
    background-color: var(--secondary-color);
}

.modal-description {
    padding: 30px;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-text);
}

.feature-card {
    cursor: pointer;
    position: relative;
}

.feature-card::after {
    content: '\f06e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset-block-start: 20px;
    inset-inline-end: 20px;
    background: var(--primary-color);
    color: white;
    inline-size: 40px;
    block-size: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .modal-content-wrapper {
        inline-size: 95%;
        margin: 20px auto;
    }

    .slide img {
        block-size: 300px;
    }

    .prev-slide,
    .next-slide {
        font-size: 20px;
        padding: 10px 15px;
    }
}

.animal-card::after {
    content: '\f06e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset-block-start: 15px;
    inset-inline-end: 15px;
    background: var(--primary-color);
    color: white;
    inline-size: 35px;
    block-size: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.animal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(1, 107, 97, 0.2);
}

.animal-card:hover::after {
    opacity: 1;
}