/* Custom Styles for Hotel Management System */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navbar Customization */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Card Customization */
.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #007bff;
    font-weight: 600;
    color: #333;
}

/* Table Customization */
.table th {
    background-color: #f1f5fd;
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Form Customization */
.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

/* Button Customization */
.btn {
    border-radius: 5px;
    font-weight: 500;
    padding: 8px 20px;
}

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

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    border: none;
    color: #212529;
}

.btn-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    border: none;
}

/* Badge Customization */
.badge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Footer Customization */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
    margin-top: auto;
    padding: 30px 0;
}

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

.footer a {
    color: #ddd;
    transition: color 0.3s;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Back to Top Button */
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1000;
}

/* Dashboard Cards */
.dashboard-card {
    border-left: 4px solid;
}

.dashboard-card.bg-primary {
    border-left-color: #0d6efd;
}

.dashboard-card.bg-success {
    border-left-color: #198754;
}

.dashboard-card.bg-warning {
    border-left-color: #ffc107;
}

.dashboard-card.bg-danger {
    border-left-color: #dc3545;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        background: white;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    .receipt-print {
        border: 1px solid #000;
        padding: 20px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* Animation for notifications */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert {
    animation: slideInRight 0.3s ease-out;
}

/* Status badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-checked_out {
    background-color: #e2e3e5;
    color: #383d41;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

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

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

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

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

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

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

/* Utility classes */
.text-small {
    font-size: 0.85rem;
}

.text-tiny {
    font-size: 0.75rem;
}

.cursor-pointer {
    cursor: pointer;
}

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

/* Form validation styles */
.is-invalid {
    border-color: #dc3545;
}

.is-valid {
    border-color: #198754;
}

.invalid-feedback {
    display: block;
}

/* Modal customization */
.modal-content {
    border-radius: 10px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
}

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