/* CSS cho hệ thống thuê trọ */


/* Màu sắc tổng thể */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}


/* Body và Typography */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark-color);
    font-weight: 600;
}


/* Header/Navbar */

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Cards */

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--light-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    border-radius: 10px 10px 0 0 !important;
}


/* Buttons */

.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(45deg, #0d6efd, #0056b3);
    border: none;
}

.btn-success {
    background: linear-gradient(45deg, #198754, #146c43);
    border: none;
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #b02a37);
    border: none;
}


/* Forms */

.form-control {
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-select {
    border-radius: 6px;
    border: 2px solid #e9ecef;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}


/* Alerts */

.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--success-color);
    background-color: rgba(25, 135, 84, 0.1);
}

.alert-danger {
    border-left-color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.1);
}

.alert-warning {
    border-left-color: var(--warning-color);
    background-color: rgba(255, 193, 7, 0.1);
}

.alert-info {
    border-left-color: var(--info-color);
    background-color: rgba(13, 202, 240, 0.1);
}


/* Badges */

.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}


/* Tables */

.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}


/* Room Cards */

.room-card {
    transition: all 0.3s ease;
    height: 100%;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.room-card .card-title {
    color: var(--primary-color);
    font-weight: bold;
}

.room-card .card-text {
    color: var(--secondary-color);
}


/* Price styling */

.price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--danger-color);
}


/* Statistics cards */

.stat-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
}

.stat-card h3 {
    font-size: 2rem;
    margin: 0;
    font-weight: bold;
}

.stat-card h5 {
    margin-bottom: 0.5rem;
    font-weight: 500;
}


/* Footer */

footer {
    margin-top: auto;
    background: linear-gradient(45deg, var(--dark-color), #495057);
}


/* Responsive */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .card {
        margin-bottom: 1rem;
    }
    .table-responsive {
        border-radius: 8px;
    }
    .navbar-brand {
        font-size: 1.25rem;
    }
    .btn {
        font-size: 0.875rem;
    }
}


/* Custom utilities */

.text-money {
    color: var(--success-color);
    font-weight: bold;
}

.bg-gradient-primary {
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
}

.bg-gradient-success {
    background: linear-gradient(45deg, var(--success-color), #146c43);
}

.bg-gradient-warning {
    background: linear-gradient(45deg, var(--warning-color), #ffcd39);
}

.bg-gradient-danger {
    background: linear-gradient(45deg, var(--danger-color), #b02a37);
}

.bg-gradient-info {
    background: linear-gradient(45deg, var(--info-color), #3dd5f3);
}


/* Loading animation */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Search form styling */

.search-form {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}


/* Status indicators */

.status-available {
    color: var(--success-color);
}

.status-booked {
    color: var(--warning-color);
}

.status-rented {
    color: var(--danger-color);
}


/* Navigation breadcrumb */

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}


/* Custom spacing */

.mt-6 {
    margin-top: 3.5rem;
}

.mb-6 {
    margin-bottom: 3.5rem;
}

.py-6 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}


/* Image placeholders */

.room-image-placeholder {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 3rem;
    border-radius: 8px 8px 0 0;
}


/* Login/Register forms */

.auth-card {
    max-width: 400px;
    margin: 2rem auto;
}

.auth-card .card {
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}


/* Demo info styling */

.demo-info {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.demo-info h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}


/* Smooth transitions */

* {
    transition: color 0.2s ease, background-color 0.2s ease;
}


/* Dark mode support (future enhancement) */

@media (prefers-color-scheme: dark) {
    /* Có thể thêm dark mode sau */
}