/* Aqua Atoll Link - Frontend Styles */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --ocean-blue: #0077b6;
    --ocean-light: #00b4d8;
    --ocean-lighter: #90e0ef;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --dark: #1e3a5f;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --ocean-gradient: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #90e0ef 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --card-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --card-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* =============================================
   NAVBAR STYLES
============================================= */
.navbar {
    background: white;
    box-shadow: var(--card-shadow);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--dark) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    color: #495057 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: rgba(102, 126, 234, 0.1);
}

.nav-link i {
    margin-right: 6px;
    font-size: 0.9rem;
}

/* =============================================
   BUTTON STYLES - ENHANCED VISIBILITY
============================================= */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn i {
    font-size: 1rem;
}

/* Primary Button */
.btn-primary {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.25);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #5a67d8 0%, #6b21a8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Success Button */
.btn-success {
    background: var(--success-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.25);
}

.btn-success:hover, .btn-success:focus {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

/* Danger Button */
.btn-danger {
    background: var(--danger-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover, .btn-danger:focus {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: white;
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-color: transparent;
    color: #1e3a5f;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.25);
}

.btn-warning:hover, .btn-warning:focus {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: #1e3a5f;
}

/* Info Button */
.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
}

.btn-info:hover, .btn-info:focus {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
}

/* Light Button */
.btn-light {
    background: white;
    border-color: #e5e7eb;
    color: var(--dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-light:hover, .btn-light:focus {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

/* Outline Buttons */
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid #6b7280;
    color: #6b7280;
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus {
    background: #6b7280;
    border-color: #6b7280;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-danger {
    background: transparent;
    border: 2px solid var(--danger);
    color: var(--danger);
}

.btn-outline-danger:hover, .btn-outline-danger:focus {
    background: var(--danger-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover, .btn-outline-light:focus {
    background: white;
    border-color: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Button with Icon Only */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.btn-icon.btn-lg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

/* =============================================
   CARD STYLES
============================================= */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.card-header {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    border-radius: 16px 16px 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: white;
    border-top: 1px solid #f0f0f0;
    padding: 1rem 1.5rem;
    border-radius: 0 0 16px 16px !important;
}

/* =============================================
   HERO SECTION
============================================= */
.hero-section {
    background: var(--ocean-gradient);
    padding: 5rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23f4f6f9' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

.hero-slide {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(102, 126, 234, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* =============================================
   SEARCH BOX
============================================= */
.search-box {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* =============================================
   FEATURE ICONS
============================================= */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 2rem;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* =============================================
   FORM STYLES
============================================= */
.form-control, .form-select {
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e5e7eb;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control-lg, .form-select-lg {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-label i {
    color: var(--primary);
    margin-right: 6px;
}

/* =============================================
   FOOTER STYLES
============================================= */
footer {
    background: linear-gradient(180deg, #1e3a5f 0%, #0d1f33 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

footer a:hover {
    color: white;
    padding-left: 5px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--primary-gradient);
    transform: translateY(-4px);
    padding-left: 0;
}

/* Payment Methods Image */
.payment-methods-img {
    height: 22px !important;
    max-height: 22px !important;
    width: auto !important;
    max-width: 200px !important;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    object-fit: contain !important;
}
.payment-methods-img:hover {
    opacity: 1;
}
@media (max-width: 768px) {
    .payment-methods-img {
        height: 20px !important;
        max-height: 20px !important;
        max-width: 180px !important;
    }
}
@media (max-width: 576px) {
    .payment-methods-img {
        height: 18px !important;
        max-height: 18px !important;
        max-width: 160px !important;
    }
}
@media (max-width: 400px) {
    .payment-methods-img {
        height: 16px !important;
        max-height: 16px !important;
        max-width: 140px !important;
    }
}

/* =============================================
   BADGES
============================================= */
.badge {
    font-weight: 600;
    padding: 0.5em 1em;
    border-radius: 8px;
    font-size: 0.8rem;
}

.badge i {
    margin-right: 4px;
}

/* =============================================
   ALERTS
============================================= */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert i {
    margin-right: 8px;
}

/* =============================================
   DROPDOWN MENU
============================================= */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
}

.dropdown-item i {
    width: 20px;
    margin-right: 8px;
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* =============================================
   TABLES
============================================= */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.table tbody tr:hover {
    background: #f8fafc;
}

/* =============================================
   MODAL STYLES
============================================= */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 700;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 1rem 1.5rem;
}

/* =============================================
   ANIMATIONS
============================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Success Checkmark Animation - Booking Confirmation */
@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 46px; }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* =============================================
   LAZY LOADING IMAGES
============================================= */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* =============================================
   ACCESSIBILITY
============================================= */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    z-index: 9999;
    transition: top 0.3s ease;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    color: white;
}

/* =============================================
   MOBILE RESPONSIVE
============================================= */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-slide {
        height: 400px;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 16px;
        margin-top: 1rem;
        box-shadow: var(--card-shadow-lg);
    }
    
    .navbar-collapse .nav-link {
        padding: 0.75rem 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-slide {
        height: 350px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .search-box {
        margin-top: -40px !important;
        padding: 1.5rem !important;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
}

/* =============================================
   PRINT STYLES
============================================= */
@media print {
    .navbar, footer, .btn, .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    body {
        background: white !important;
    }
}
