/* Regina Hotel Management System - Custom Styles */

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

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

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 20px;
}

.login-row {
    display: flex;
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 600px;
}

.login-left {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-header h1 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 40px;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.login-form input:focus {
    outline: none;
    border-color: #dbd1c5;
    background: white;
    box-shadow: 0 0 0 3px rgba(219, 209, 197, 0.1);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: #dbd1c5;
    color: #333;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.login-btn:hover {
    background: #c5b8a8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(219, 209, 197, 0.3);
}

.demo-accounts {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.demo-accounts strong {
    color: #333;
}

.demo-accounts span {
    color: #dbd1c5;
    font-weight: 500;
}

.login-divider {
    width: 2px;
    background: linear-gradient(to bottom, transparent, #e0e0e0, transparent);
    margin: 40px 0;
}

.login-right {
    flex: 1;
    padding: 40px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-gallery {
    width: 100%;
    max-width: 500px;
}

.welcome-text {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-text h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.welcome-text p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 350px;
    margin-bottom: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item:nth-child(1) {
    /* Large left image - spans both rows */
    grid-row: 1 / 3;
    grid-column: 1;
}

.gallery-item:nth-child(2) {
    /* Top right first small image */
    grid-row: 1;
    grid-column: 2;
}

.gallery-item:nth-child(3) {
    /* Top right second small image */
    grid-row: 1;
    grid-column: 3;
}

.gallery-item:nth-child(4) {
    /* Bottom wide image */
    grid-row: 2;
    grid-column: 2 / 4;
}

.gallery-item:nth-child(5) {
    /* This will be hidden in this layout */
    display: none;
}

.gallery-item:nth-child(6) {
    /* This will be hidden in this layout */
    display: none;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: #dbd1c5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-dots {
    text-align: center;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #dbd1c5;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-row {
        flex-direction: column;
        margin: 10px;
    }

    .login-left {
        padding: 40px 30px;
    }

    .login-right {
        padding: 30px;
    }

    .login-divider {
        width: 100%;
        height: 2px;
        margin: 0;
    }

    .gallery-grid {
        height: 250px;
    }
}

/* Dashboard Layout Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background: #dbd1c5;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(219, 209, 197, 0.2);
    padding: 0 15px;
}

.sidebar .brand {
    padding: 1.5rem 0;
    color: #4a4a4a;
    text-align: center;
    border-bottom: 5px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-radius: 10px;
    margin-top: 1rem;
}

.sidebar .nav-item {
    margin-bottom: 8px;
}

.sidebar .nav-link {
    color: #6d4c36;
    padding: 12px 16px;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 12px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
}

.sidebar .nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.sidebar .nav-link:hover {
    background: rgba(109, 76, 54, 0.1);
    color: #4a3426;
    transform: none;
}

.sidebar .nav-link.active {
    background: white;
    color: #4a3426;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: none;
}

.sidebar .nav-link.active::before {
    display: none;
}

.main-content {
    margin-left: 250px;
    min-height: 100vh;
    background: #f8f9fa;
}

.top-header {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 999;
}

.content-area {
    padding: 2rem;
}

/* Cards Enhancement */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

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

.card-header {
    background: white;
    border-bottom: 1px solid #f1f3f4;
    font-weight: 600;
    padding: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* Statistics Cards */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

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

/* Chart Styles */
.chart-container {
    margin: 20px 0;
}

.chart-bar {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    margin: 0 2px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.chart-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

/* Task Items */
.task-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.task-item:hover {
    background-color: #e9ecef !important;
    border-color: #dee2e6;
    transform: translateX(5px);
}

/* Table Enhancements */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.table td {
    vertical-align: middle;
    border-color: #f1f3f4;
}

/* Status Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
        width: 220px;
    }

    .sidebar.show {
        margin-left: 0;
    }

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

    .content-area {
        padding: 0.75rem;
    }

    .top-header {
        padding: 0.75rem;
    }

    /* Make sidebar brand smaller */
    .sidebar .brand {
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    /* Make nav links smaller */
    .sidebar .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .sidebar .nav-link i {
        margin-right: 8px;
        font-size: 0.9rem;
    }
}

/* Extra Mobile Responsiveness for Small Screens */
@media (max-width: 576px) {

    /* Body and general spacing */
    body {
        font-size: 14px;
    }

    /* Header adjustments */
    .top-header {
        padding: 0.5rem;
    }

    .top-header h4,
    .top-header h5 {
        font-size: 1.1rem;
    }

    /* Content area */
    .content-area {
        padding: 0.5rem;
    }

    /* Cards */
    .card {
        margin-bottom: 1rem;
    }

    .card-header {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    /* Statistics cards */
    .stats-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .stats-card h3 {
        font-size: 1.5rem;
    }

    .stats-card h5 {
        font-size: 1rem;
    }

    .stats-card p {
        font-size: 0.8rem;
    }

    /* Dashboard specific */
    .row.mb-4 .col-md-3,
    .row.mb-4 .col-md-6 {
        margin-bottom: 1rem;
    }

    /* Buttons */
    .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .btn-sm {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    /* Tables */
    .table {
        font-size: 0.75rem;
    }

    .table th,
    .table td {
        padding: 0.4rem;
    }

    /* Forms */
    .form-control,
    .form-select {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .form-label {
        font-size: 0.85rem;
    }

    /* Badges */
    .badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }

    /* Dashboard title */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    h4 {
        font-size: 1rem;
    }

    h5 {
        font-size: 0.9rem;
    }

    /* Sidebar for small screens */
    .sidebar {
        width: 200px;
        margin-left: -200px;
    }

    .sidebar .brand {
        padding: 0.75rem 0;
        font-size: 1rem;
    }

    .sidebar .nav-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .sidebar .nav-link i {
        margin-right: 6px;
        font-size: 0.8rem;
    }

    /* Alert messages */
    .alert {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    /* Timeline adjustments */
    .timeline-title {
        font-size: 0.8rem;
    }

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

    .timeline-date {
        font-size: 0.7rem;
    }

    /* Room status */
    .status-available,
    .status-occupied,
    .status-out-of-service {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }

    /* Navigation adjustments */
    .navbar-brand {
        font-size: 1.1rem;
    }

    /* Utility text sizes */
    .small {
        font-size: 0.75rem;
    }

    /* Chart containers */
    .chart-container {
        margin: 10px 0;
    }

    /* Modal adjustments */
    .modal-header {
        padding: 0.75rem;
    }

    .modal-body {
        padding: 0.75rem;
    }

    .modal-footer {
        padding: 0.5rem 0.75rem;
    }

    /* Dropdown adjustments */
    .dropdown-menu {
        font-size: 0.8rem;
    }

    .dropdown-item {
        padding: 0.3rem 1rem;
    }
}

/* Login page styles */

/* Table styles */
.table {
    font-size: 0.9rem;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

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

/* Button styles */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.825rem;
}

/* Form styles */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-select,
.form-control {
    border-radius: 6px;
}

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

/* Alert styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Navigation styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .table-responsive {
        font-size: 0.8rem;
    }

    .btn-sm {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Additional mobile optimizations */
    .container-fluid {
        padding: 0.5rem;
    }

    .row {
        margin: 0 -0.5rem;
    }

    .col,
    [class*="col-"] {
        padding: 0 0.5rem;
    }

    /* Navigation improvements */
    .navbar {
        padding: 0.5rem;
    }

    .navbar-toggler {
        padding: 0.2rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Text adjustments */
    .display-1 {
        font-size: 2.5rem;
    }

    .display-2 {
        font-size: 2rem;
    }

    .display-3 {
        font-size: 1.75rem;
    }

    .display-4 {
        font-size: 1.5rem;
    }

    .display-5 {
        font-size: 1.25rem;
    }

    .display-6 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {

    /* Even smaller adjustments for extra small screens */
    .card-body {
        padding: 0.75rem;
    }

    .table-responsive {
        font-size: 0.75rem;
    }

    .btn-sm {
        padding: 0.15rem 0.4rem;
        font-size: 0.7rem;
    }

    /* Container adjustments */
    .container,
    .container-fluid {
        padding: 0.25rem;
    }

    /* Typography for very small screens */
    .lead {
        font-size: 1rem;
    }

    /* Form adjustments */
    .input-group-text {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Custom utility classes */
.text-truncate-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Timeline styles */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 20px;
    height: calc(100% - 10px);
    width: 2px;
    background-color: #dee2e6;
}

.timeline-marker {
    position: absolute;
    left: -20px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    padding-left: 10px;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #495057;
}

.timeline-text {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
}

.timeline-date {
    font-size: 12px;
    color: #adb5bd;
}

/* Room status colors */
.status-available {
    color: #198754;
    background-color: #d1e7dd;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.status-occupied {
    color: #fd7e14;
    background-color: #ffe8d1;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.status-out-of-service {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

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

/* Custom checkbox for room selection */
.room-checkbox {
    transform: scale(1.2);
}

.room-card {
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

.room-card:hover,
.room-card.selected {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {

    /* Ultra-small screen optimizations */
    .sidebar {
        width: 180px;
        margin-left: -180px;
    }

    .sidebar .brand {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    .sidebar .nav-link {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .sidebar .nav-link i {
        margin-right: 4px;
        font-size: 0.75rem;
    }

    /* Dashboard stats cards */
    .stats-card {
        padding: 0.75rem;
        text-align: center;
    }

    .stats-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .stats-card h5 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .stats-card p {
        font-size: 0.7rem;
        margin-bottom: 0;
    }

    /* Top header */
    .top-header {
        padding: 0.25rem 0.5rem;
    }

    .top-header h4 {
        font-size: 0.95rem;
    }

    /* Content area spacing */
    .content-area {
        padding: 0.25rem;
    }

    /* Cards ultra-compact */
    .card {
        margin-bottom: 0.75rem;
    }

    .card-header {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .card-body {
        padding: 0.5rem;
    }

    /* Tables ultra-compact */
    .table {
        font-size: 0.7rem;
    }

    .table th,
    .table td {
        padding: 0.25rem;
    }

    /* Buttons ultra-small */
    .btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .btn-sm {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }

    /* Forms ultra-compact */
    .form-control,
    .form-select {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    /* Typography ultra-small */
    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 1rem;
    }

    h4 {
        font-size: 0.9rem;
    }

    h5 {
        font-size: 0.8rem;
    }

    h6 {
        font-size: 0.75rem;
    }

    /* Dashboard specific spacing */
    .row.mb-4 {
        margin-bottom: 0.75rem !important;
    }

    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-8,
    .col-md-12 {
        margin-bottom: 0.5rem;
    }

    /* Alert ultra-compact */
    .alert {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }

    /* Badge ultra-small */
    .badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }

    /* Navigation ultra-compact */
    .navbar-brand {
        font-size: 1rem;
    }

    /* Timeline ultra-compact */
    .timeline-title {
        font-size: 0.75rem;
    }

    .timeline-text {
        font-size: 0.7rem;
    }

    .timeline-date {
        font-size: 0.65rem;
    }

    /* Room status ultra-small */
    .status-available,
    .status-occupied,
    .status-out-of-service {
        padding: 0.15rem 0.3rem;
        font-size: 0.65rem;
    }

    /* Modal ultra-compact */
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 0.5rem;
    }

    /* Dropdown ultra-compact */
    .dropdown-menu {
        font-size: 0.75rem;
    }

    .dropdown-item {
        padding: 0.25rem 0.75rem;
    }

    /* Chart ultra-compact */
    .chart-container {
        margin: 5px 0;
    }

    /* Gallery adjustments for mobile */
    .gallery-grid {
        height: 200px;
        gap: 5px;
    }

    .welcome-text h2 {
        font-size: 1.25rem;
    }

    .welcome-text p {
        font-size: 0.8rem;
    }

    /* Utility spacing adjustments */
    .p-1 {
        padding: 0.125rem !important;
    }

    .p-2 {
        padding: 0.25rem !important;
    }

    .p-3 {
        padding: 0.375rem !important;
    }

    .p-4 {
        padding: 0.5rem !important;
    }

    .p-5 {
        padding: 0.75rem !important;
    }

    .m-1 {
        margin: 0.125rem !important;
    }

    .m-2 {
        margin: 0.25rem !important;
    }

    .m-3 {
        margin: 0.375rem !important;
    }

    .m-4 {
        margin: 0.5rem !important;
    }

    .m-5 {
        margin: 0.75rem !important;
    }
}