/* assets/css/style.css - Custom Styling */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: #333;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('https://via.placeholder.com/1920x1080?text=Hotel+Hero') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    animation: slideInUp 0.8s ease-out;
}

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

.hero-content h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: slideInDown 0.8s ease-out;
}

/* Features Section */
.feature-card {
    padding: 2rem 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.feature-card i {
    transition: color 0.3s ease;
}

.feature-card:hover i {
    color: #0d6efd;
}

/* Room Cards */
.room-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.room-card .card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Booking Form */
.booking-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.booking-form .form-control,
.booking-form .form-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem;
}

.booking-form .form-control:focus,
.booking-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Menu Items */
.menu-item-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.menu-item-card .card-body {
    padding: 1.25rem;
}

/* Contact Cards */
.contact-card {
    padding: 2rem 1rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Cart Section */
#order-cart {
    border-left: 4px solid var(--success-color);
}

#order-cart h4 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* Admin Dashboard */
.admin-sidebar {
    background: #2c3e50;
    min-height: 100vh;
    padding: 2rem 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.75rem 1.5rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-left-color: var(--primary-color);
}

.admin-main {
    background: var(--light-bg);
    min-height: 100vh;
}

.admin-header {
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Tables */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table {
    border-collapse: collapse;
    background: #fff;
}

.table thead {
    background: #f8f9fa;
}

.table th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #333;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-confirmed {
    background: #cfe2ff;
    color: #084298;
}

.badge-checked-in {
    background: #d1e7dd;
    color: #0f5132;
}

.badge-checked-out {
    background: #e2e3e5;
    color: #383d41;
}

/* Buttons */
.btn {
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

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

.btn-success:hover {
    background: #157347;
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 250px;
        height: 100vh;
        z-index: 1000;
    }

    .admin-main {
        margin-left: 250px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .booking-form {
        padding: 1.5rem;
    }

    .admin-sidebar {
        width: 100%;
        position: static;
    }

    .admin-main {
        margin-left: 0;
    }
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Loading */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.4em;
}

/* Form Validation */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-color);
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    #order-cart {
        display: none;
    }

    body {
        background: #fff;
    }
}
