/* HIBISCUS Hotel - Custom Styles */

:root {
    --primary-color: #0066CC;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.min-vh-100 {
    min-height: 100vh;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    animation: fadeInUp 1.2s ease;
}

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

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 20px;
    border: 5px solid rgba(255,255,255,0.3);
}

.hero-image:hover {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

.btn-hero {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 1.4s ease;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
}

/* Tables */
.table {
    margin-top: 20px;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
    font-size: 0.875em;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
}

/* Footer */
footer {
    margin-top: auto;
}

.footer-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

.footer-section h5 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-section a:hover {
    color: #fff !important;
}

.footer-section hr {
    border-color: rgba(255,255,255,0.1);
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Room Cards */
.room-card {
    margin-bottom: 30px;
}

.room-card img {
    height: 250px;
    object-fit: cover;
}

/* Search Bar */
.search-container {
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Validation Styles */
.was-validated .form-control:invalid {
    border-color: var(--danger-color);
}

.was-validated .form-control:valid {
    border-color: var(--success-color);
}

/* Status Badges */
.status-pending { background-color: var(--warning-color); }
.status-confirmed { background-color: var(--success-color); }
.status-checked_in { background-color: var(--info-color); }
.status-checked_out { background-color: var(--secondary-color); }
.status-cancelled { background-color: var(--danger-color); }

/* Features Section */
.features-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.feature-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.feature-card-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.feature-card-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.feature-card-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.feature-icon {
    font-size: 4rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.feature-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.feature-text {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
    border: 3px solid white;
    border-radius: 20px;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(102, 126, 234, 0.9) 0%, transparent 100%);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Services Section */
.services-section {
    background: white;
}

.service-box {
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.service-box:hover {
    transform: translateY(-10px);
}

.service-icon-box {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-icon-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-icon-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.service-icon-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.service-icon-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.service-box:hover .service-icon-box {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.service-box h5 {
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-box p {
    color: #666;
    font-size: 0.9rem;
}

/* Navigation Enhancement */
.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Login/Register Pages */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    min-height: 100vh;
    padding: 50px 0;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: none;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
}

.auth-card .card-body {
    padding: 40px;
}

.auth-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    margin-bottom: 30px;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.btn-auth {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Rooms Page */
.rooms-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 0 0 50px 50px;
}

.room-card {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    background: white;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.room-card img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.room-card:hover img {
    transform: scale(1.1);
}

.room-card .card-body {
    padding: 25px;
}

.room-price {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.room-amenities {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 10px;
}

/* Dashboard Pages */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 0 0 30px 30px;
}

.dashboard-welcome {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-card-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stats-card-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stats-card-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.table-responsive {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.1);
    transform: scale(1.01);
}

.badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

/* Search and Filter */
.search-filter-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.search-filter-section .form-control,
.search-filter-section .form-select {
    border-radius: 50px;
    border: none;
    padding: 12px 20px;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-image {
        height: 300px;
        margin-top: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-icon {
        font-size: 3rem;
    }
    
    .gallery-image {
        height: 250px;
    }
    
    .auth-card .card-body {
        padding: 30px 20px;
    }
}
