/* Custom Styles for TravelNow Travel Agency */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navigation Bar */
.navbar {
    padding: 1rem 0;
    z-index: 1050; /* keep above hero overlay */
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white !important;
}

.navbar-brand i {
    margin-right: 0.5rem;
    color: #00d4ff;
}

.nav-link {
    color: #ffffff !important;
    margin: 0 0.5rem;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #00d4ff !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Ensure navbar collapse works with Tailwind present */
#navbarNav.collapse { display: none !important; }
#navbarNav.collapse.show { display: block !important; }
#navbarNav { visibility: visible !important; }

/* Desktop & laptop: ensure navbar is visible by default on wider screens */
@media (min-width: 768px) {
    #navbarNav.collapse {
        display: flex !important;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: slideInDown 1s ease-out;
}

.hero-section .lead {
    font-size: 1.5rem;
    animation: slideInUp 1s ease-out;
}

/* Search Bar */
.input-group-lg .form-control {
    border-radius: 50px 0 0 50px;
    padding: 1rem 1.5rem;
    border: none;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.input-group-lg .btn {
    border-radius: 0 50px 50px 0;
    padding: 1rem 1.5rem;
    font-weight: bold;
    border: none;
    background: #ffc107;
    color: white;
    transition: all 0.3s;
}

.input-group-lg .btn:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

/* Category Cards */
.category-card {
    border: none;
    transition: all 0.3s;
    border-radius: 10px;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-card i {
    transition: all 0.3s;
}

.category-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Destination Cards */
.destination-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    background: white;
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.destination-image {
    position: relative;
    overflow: hidden;
}

.destination-image img {
    transition: all 0.3s;
}

.destination-card:hover .destination-image img {
    transform: scale(1.1) rotate(2deg);
}

/* Footer */
footer {
    background: linear-gradient(to right, #1a1a2e, #16213e);
    color: white;
    margin-top: auto;
}

footer a {
    transition: all 0.3s;
    color: #ffffff;
}

footer a:hover {
    color: #00d4ff !important;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

/* Guest footer overrides for index page */
.footer-guest {
    background: linear-gradient(to right, #1a1a2e, #16213e);
    color: #ffffff !important;
}
.footer-guest a {
    color: #ffffff;
}
.footer-guest a:hover {
    color: #00d4ff !important;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}
.footer-guest hr {
    border-color: #2a2f4f;
}

/* Ensure any muted text inside footers appears white */
footer .text-muted { color: #ffffff !important; }

/* Dropdown on hover - disabled to prevent mobile issues, using specific navbar hover logic instead */
/*.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; 
}*/
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }


@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.5s ease-out;
}

/* Forms */
.form-control,
.form-select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .stat-card {
        margin-bottom: 15px;
    }

    .navbar-nav {
        text-align: center;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-gradient {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.opacity-50 {
    opacity: 0.5;
}

/* Loading Animation */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Sidebar Styles */
.sidebar {
    background: #343a40;
    min-height: 100vh;
    padding: 20px 0;
}
.sidebar-nav a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: white;
}

/* Dashboard Specific Styles (moved from dashboard.php) */
body {
    background-color: white;
}
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.navbar-top {
    background: #212529;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    color: white;
}
.destination-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}
.destination-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}
