/* Clean Minimal Hospitality Management System Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    color: #333;
    line-height: 1.5;
}

/* Global Select Styles - Fix for white text visibility */
select {
    color: #495057 !important;
    background-color: white;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

select option {
    color: #495057;
    background-color: white;
    padding: 8px 12px;
}

select option:checked {
    background-color: #e9ecef;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Section Management */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* Login Section */
#loginSection {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: white;
}

.login-form {
    background: white;
    padding: 48px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    width: 100%;
    max-width: 420px;
}

.login-form h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 32px;
    font-size: 2rem;
    font-weight: 600;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 32px;
    color: #495057;
    font-weight: 500;
    font-size: 1.25rem;
}

/* Navigation */
.navbar {
    background: white;
    padding: 16px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.375rem;
    font-weight: 600;
    color: #2c3e50;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #6c757d;
}

/* Tabs */
.tabs {
    display: flex;
    background: white;
    border-radius: 8px;
    margin: 24px 0;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #6c757d;
    transition: all 0.2s ease;
    font-weight: 500;
    flex: 1;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    background: #f8f9fa;
    color: #2c3e50;
    border-bottom-color: #2c3e50;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

/* Tab Content */
.tab-content {
    display: none;
    background: white;
    border-radius: 8px;
    padding: 32px;
    border: 1px solid #e9ecef;
    margin-bottom: 24px;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    color: #2c3e50;
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: white;
    color: #495057;
}

.form-group select option {
    background-color: white;
    color: #495057;
    padding: 8px 12px;
}

.form-group select option:hover,
.form-group select option:focus {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
    background-color: #fff;
    color: #495057;
}

/* Buttons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #2c3e50;
    color: white;
}

.btn-primary:hover {
    background: #34495e;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.75rem;
}

/* Messages */
.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
    font-weight: 400;
    font-size: 0.875rem;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Reservations Grid */
.reservations-grid {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.reservation-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.reservation-card:hover {
    border-color: #ced4da;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.guest-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

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

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

.status-checkedout {
    background: #d1ecf1;
    color: #0c5460;
}

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

.reservation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.detail-item {
    color: #6c757d;
    font-size: 0.875rem;
}

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

.reservation-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Availability Result */
.availability-result {
    margin: 20px 0;
    padding: 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
}

.availability-available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

.availability-unavailable {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
}

/* Alternative Rooms */
.alternative-rooms {
    margin-top: 24px;
    display: none;
}

.alternatives-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.alternatives-section h3 {
    color: #2c3e50;
    margin-bottom: 16px;
    font-size: 1.2rem;
    text-align: center;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.room-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.room-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.room-number {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
}

.room-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.room-details {
    margin-bottom: 16px;
}

.room-rate {
    font-size: 1.1rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 4px;
}

.room-capacity {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.hotel-name {
    font-size: 0.9rem;
    color: #495057;
    font-style: italic;
}

.no-alternatives {
    text-align: center;
    padding: 32px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 20px;
}

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

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2c3e50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional clean styling improvements */

/* Table styling for better data presentation */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
}

.data-table td {
    color: #6c757d;
    font-size: 0.875rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6c757d;
}

.empty-state h3 {
    color: #495057;
    margin-bottom: 8px;
    font-weight: 500;
}

.empty-state p {
    font-size: 0.875rem;
}

/* Card layouts for better organization */
.info-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.info-card p {
    color: #6c757d;
    margin: 4px 0;
    font-size: 0.875rem;
}

/* Alert styling */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
    border: 1px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Button group styling */
.btn-group {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* Compact form styling */
.compact-form {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

.compact-form .form-group {
    margin-bottom: 0;
    min-width: 120px;
}

/* Search and filter improvements */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* List styling */
.clean-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clean-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.875rem;
}

.clean-list li:last-child {
    border-bottom: none;
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #6c757d; }
.text-small { font-size: 0.875rem; }
.font-weight-bold { font-weight: 600; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

/* Separator line */
.separator {
    height: 1px;
    background: #e9ecef;
    margin: 24px 0;
}

/* Badge styling */
.badge {
    display: inline-block;
    padding: 4px 8px;
    background: #e9ecef;
    color: #495057;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary {
    background: #2c3e50;
    color: white;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #212529;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

/* Improved responsive grid */
@media (max-width: 576px) {
    .compact-form {
        flex-direction: column;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-user {
        width: 100%;
        justify-content: center;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .reservation-details {
        grid-template-columns: 1fr;
    }
    
    .reservation-actions {
        justify-content: center;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .room-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .login-card {
        padding: 24px;
        margin: 0 16px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: 20px;
        margin: 20px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .reservation-card {
        padding: 15px;
    }
}

/* Homepage and Login Page Specific Styles */

.login-page {
    background: #f8f9fa;
    height: 100vh;
    overflow: hidden;
}

.main-container {
    display: flex;
    height: 100vh;
}

.hero-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-section {
    flex: 0 0 480px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.hero-content {
    max-width: 600px;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.1;
    color: white;
}

.hero-tagline {
    font-size: 1.375rem;
    margin-bottom: 32px;
    opacity: 0.95;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    margin-bottom: 32px;
}

.hero-description p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.hero-brand {
    margin-bottom: 32px;
}

.logo-container {
    margin-bottom: 16px;
}

.hero-logo {
    height: 80px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature-item {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Login Branding */
.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.login-logo {
    height: 56px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.login-brand-text h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.login-brand-text p {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}

/* Navigation Branding */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 36px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
}

.nav-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.nav-subtitle {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive adjustments for branding */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .hero-section {
        flex: none;
        padding: 40px 20px;
        text-align: center;
    }
    
    .login-section {
        flex: none;
        padding: 40px 20px;
        box-shadow: none;
        border-top: 1px solid #e9ecef;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .login-card {
        padding: 24px;
        margin: 0;
        box-shadow: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.125rem;
    }
    
    .hero-description p {
        font-size: 1rem;
    }
    
    .hero-logo {
        height: 60px;
    }
    
    .login-brand {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .login-logo {
        height: 40px;
    }
    
    .nav-brand {
        gap: 8px;
    }
    
    .nav-logo {
        height: 28px;
    }
    
    .nav-title {
        font-size: 1.125rem;
    }
    
    .nav-subtitle {
        font-size: 0.6875rem;
    }
}

@media (max-width: 480px) {
    .login-page {
        overflow: auto;
    }
    
    .hero-section {
        padding: 30px 15px;
    }
    
    .login-section {
        padding: 30px 15px;
    }
    
    .login-card {
        padding: 20px;
        border-radius: 8px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-logo {
        height: 50px;
    }
    
    .nav-brand-text {
        display: none;
    }
    
    .nav-logo {
        height: 32px;
    }
}

/* Modern Reservation Cards */
.reservation-card-modern {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.reservation-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.guest-info h3.guest-name {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.guest-phone {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.status-badge-modern {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-modern.status-confirmed {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge-modern.status-checkedin {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge-modern.status-checkedout {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge-modern.status-cancelled {
    background: #ffebee;
    color: #c62828;
}

.hotel-location {
    margin-bottom: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hotel-name {
    font-weight: 700;
    font-size: 1rem;
    color: #2c3e50;
}

.reservation-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.detail-card {
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.detail-card.total-card {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-card.total-card .detail-label {
    color: rgba(255, 255, 255, 0.8);
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.detail-card.total-card .detail-value {
    color: white;
}

.total-amount {
    font-size: 1rem !important;
    font-weight: 700 !important;
}

.reservation-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reservation-details-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .reservation-card-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .reservation-actions {
        justify-content: center;
    }
}