/**
 * HotelPro - Styles principaux
 * Système de gestion hôtelière moderne - Design Premium
 */

/* Variables CSS */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --success-color: #06c270;
    --danger-color: #ef233c;
    --warning-color: #ffc107;
    --info-color: #00b4d8;
    --light-color: #f8f9fa;
    --dark-color: #1a1d29;
    --sidebar-bg: #1a1d29;
    --sidebar-hover: #252836;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #f0f2f5;
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Sidebar Navigation - Style Premium */
.navbar {
    background: var(--sidebar-bg) !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    padding: 0;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    padding: 1.5rem 1rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px;
    border-radius: 10px;
    font-size: 1.2rem;
}

.navbar-nav {
    width: 100%;
}

.navbar-nav .nav-link {
    padding: 0.8rem 1.5rem;
    color: #a0aec0 !important;
    transition: all 0.3s;
    border-radius: 8px;
    margin: 0.2rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--sidebar-hover);
    color: white !important;
    transform: translateX(5px);
}

.navbar-nav .nav-link i {
    width: 20px;
    text-align: center;
}

.dropdown-menu {
    background: var(--sidebar-hover);
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-left: 1rem;
}

.dropdown-menu .dropdown-item {
    color: #a0aec0;
    padding: 0.7rem 1.5rem;
    transition: all 0.3s;
}

.dropdown-menu .dropdown-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
    padding-left: 2rem;
}

/* Main Content - Décalé pour le sidebar */
.main-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
    background: #f0f2f5;
}

/* Header de page */
.page-header {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.page-header p {
    color: #718096;
    margin: 0.5rem 0 0 0;
}

/* Cards - Style Premium */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s;
    margin-bottom: 20px;
    background: white;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card-header {
    background: white;
    color: var(--dark-color);
    border-radius: 16px 16px 0 0 !important;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Stats Cards - Colorées comme l'exemple */
.stats-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    padding: 2rem;
    color: white;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

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

.stats-card.bg-success {
    background: linear-gradient(135deg, #06c270 0%, #059862 100%);
}

.stats-card.bg-info {
    background: linear-gradient(135deg, #00b4d8 0%, #0096c7 100%);
}

.stats-card.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.stats-card.bg-danger {
    background: linear-gradient(135deg, #ef233c 0%, #d90429 100%);
}

.stats-card .card-body {
    position: relative;
    z-index: 1;
}

.stats-card h6 {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.stats-card h2, .stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stats-card small {
    opacity: 0.8;
}

.stats-card .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Buttons */
.btn {
    border-radius: 6px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

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

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

.btn-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
}

/* Forms */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 0.6rem 1rem;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #555;
}

/* Tables */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

.table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

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

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

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

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.alert-dismissible .btn-close {
    padding: 1rem;
}

/* Stats Cards */
.stats-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.stats-card .card-body {
    padding: 1.5rem;
}

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

/* Footer */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

/* Pagination */
.pagination {
    margin-top: 20px;
}

.page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: none;
    color: var(--primary-color);
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Room Status Colors */
.room-available {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

.room-occupied {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.room-maintenance {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.room-cleaning {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.room-reserved {
    background-color: #d6d8db;
    border-left: 4px solid #6c757d;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Calendar styles */
.calendar-day {
    border: 1px solid #ddd;
    padding: 10px;
    min-height: 100px;
    cursor: pointer;
    transition: all 0.3s;
}

.calendar-day:hover {
    background-color: #f0f0f0;
    transform: scale(1.02);
}

.calendar-day.today {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.calendar-day.has-reservation {
    background-color: #ffebee;
}

/* Profile Image */
.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-img-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box input {
    padding-left: 2.5rem;
}

.search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Print Styles */
@media print {
    .navbar, .footer, .action-buttons, .btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Offline indicator */
.offline-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff5722;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

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

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

/* 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-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

.shadow {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}

.rounded-lg {
    border-radius: 15px !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Invoice Print */
.invoice-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
}

.invoice-header {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.invoice-footer {
    border-top: 2px solid #ddd;
    padding-top: 20px;
    margin-top: 30px;
}

