/* Main Stylesheet for Hotel Management System */

:root {
    /* Light mode variables */
    --bg-color: #ffffff;
    --text-color: #333333;
    --navbar-bg: #343a40;
    --navbar-text: #ffffff;
    --footer-bg: #343a40;
    --footer-text: #ffffff;
    --card-bg: #ffffff;
    --card-border: #dee2e6;
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

[data-theme="dark"] {
    /* Dark mode variables */
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --navbar-bg: #1e1e1e;
    --navbar-text: #ffffff;
    --footer-bg: #1e1e1e;
    --footer-text: #ffffff;
    --card-bg: #2d2d2d;
    --card-border: #444444;
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar styling */
.navbar {
    background-color: var(--navbar-bg) !important;
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
    color: var(--navbar-text);
}

/* Main content */
.container {
    flex: 1 0 auto;
}

/* Card styling */
.card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
    transition: transform 0.3s ease;
}

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

/* Table styling */
.table {
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* Footer styling */
footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    margin-top: auto;
    width: 100%;
}

/* Theme toggle button */
.theme-toggle {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    margin-left: 10px;
}

.theme-toggle i {
    margin-right: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
    
    /* Improve form elements on mobile */
    .form-control, .btn {
        font-size: 16px; /* Prevents zoom on input focus in iOS */
    }
    
    /* Adjust spacing for mobile */
    .mt-4 {
        margin-top: 2rem !important;
    }
    
    /* Make buttons more touch-friendly */
    .btn {
        padding: 0.5rem 1rem;
    }
}

/* Habitacion panel specific styles */
.habitacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.habitacion-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Status colors for habitaciones */
.disponible {
    background-color: var(--success-color) !important;
    color: white;
}

.ocupada {
    background-color: var(--danger-color) !important;
    color: white;
}

.mantenimiento {
    background-color: var(--warning-color) !important;
    color: black;
}

/* Animation for status changes */
@keyframes statusChange {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.status-changed {
    animation: statusChange 0.5s ease;
}