/*
* File: assets/css/style.css
* Description: Custom stylesheet for the Boat Booking System.
*/

/* 1. Global Styles & Variables
-------------------------------------------------- */
:root {
    --primary-color: #0d6efd; /* Bootstrap Primary Blue */
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-gray: #f8f9fa;
    --font-family-sans-serif: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-family-sans-serif);
    background-color: var(--light-gray);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* 2. Navbar Styles
-------------------------------------------------- */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar .nav-link {
    transition: color 0.2s ease-in-out;
}

.navbar .nav-link:hover {
    color: #0d6efd !important;
}

/* 3. Card Styles (Boats, Dashboard, etc.)
-------------------------------------------------- */
.card {
    border: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover,
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* 4. Hero Section (Homepage)
-------------------------------------------------- */
.hero-section {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
}

.hero-section .overlay {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 0.5rem;
}

/* 5. Admin Dashboard Specific Styles
-------------------------------------------------- */
.card.border-left-primary {
    border-left: .25rem solid var(--primary-color) !important;
}
.card.border-left-success {
    border-left: .25rem solid var(--success-color) !important;
}
.card.border-left-info {
    border-left: .25rem solid var(--info-color) !important;
}
.card.border-left-warning {
    border-left: .25rem solid var(--warning-color) !important;
}
.card.border-left-danger {
    border-left: .25rem solid var(--danger-color) !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

/* 6. Form & Button Styles
-------------------------------------------------- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    opacity: 0.9;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 7. Footer Styles
-------------------------------------------------- */
footer {
    width: 100%;
}

/* 8. Homepage Styles
-------------------------------------------------- */
.hero-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem 2rem 2rem 2rem;
    text-align: left;
    border-radius: 0;
}

.hero-caption h5 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: fadeInDown 1s;
}

.hero-caption p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s;
}

.section-title {
    font-weight: 700;
    margin-bottom: 3rem;
    color: #0d6efd;
}

.testimonial-card {
    background-color: #6134adc9;
    border: none;
    padding: 2rem;
}

.gallery-img {
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}

.gallery-carousel .carousel-item img {
    width: 100%;
    padding: 0.5rem;
}

.whatsapp-support {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto; /* Ensures it's not stuck to the left */
    z-index: 1000;
}

.whatsapp-support a {
    background-color: #25d366;
    color: white;
    padding: 15px;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

/* Simple fade-in animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 9. Google Sign-In Button
-------------------------------------------------- */
.btn-google-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #DCDCDC;
    border-radius: 4px;
    background-color: #FFFFFF;
    color: #333333;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.1);
}

.btn-google-login:hover {
    background-color: #F8F8F8;
    border-color: #C6C6C6;
    box-shadow: 0 3px 6px 0 rgba(0,0,0,0.15);
    color: #333333;
}

.btn-google-login img {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

/* 10. Responsive Adjustments
-------------------------------------------------- */
@media (max-width: 767.98px) {
    /* Reduce the height of the carousel image on mobile */
    .carousel-item img {
        height: 250px !important;
    }

    /* Adjust the caption padding and font sizes for smaller screens */
    .hero-caption {
        padding: 2rem 1rem 1rem 1rem;
    }

    .hero-caption h5 {
        font-size: 1.5rem; /* Smaller title on mobile */
    }

    .hero-caption p {
        font-size: 1rem; /* Smaller subtitle on mobile */
    }

    /* Gallery carousel on mobile */
    .gallery-carousel .carousel-inner {
        display: flex;
    }
    .gallery-carousel .carousel-item {
        margin-right: 0;
        flex: 0 0 100%; /* Show one item at a time */
        display: block;
    }

    /* Boat grid on mobile */
    .boat-grid .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}


/* 11. Responsive Adjustments
-------------------------------------------------- */
@media (max-width: 767.98px) {
    /* ... other mobile styles ... */
    
    /* Mobile view: show 1 item */
    .multi-item-carousel .carousel-item {
        flex: 0 0 100%; /* Shows 1 item */
    }
}
.boat-grid .card-title {
    /* Adjust this value if needed, but it should be enough for two lines of text */
    min-height: 48px; 
}
.sort-options {
    width: 200px;
}

.pagination .page-link {
    border-radius: 5px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: #495057;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  
    .sort-options {
        width: 100%;
        margin-top: 10px;
    }
    
  
}
