/* Hotel Booking System Frontend Styles */
.hr-booking-form, .hr-dashboard, .hr-all-bookings, .hr-manage-rooms, .hr-hotel-info-form, .hr-room-showcase {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hr-admin-header, .hr-booking-header, .hr-showcase-header, .hr-bookings-header, .hr-management-header, .hr-dashboard-header, .hr-form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.hr-admin-header h1, .hr-booking-header h2, .hr-showcase-header h2, .hr-bookings-header h2, .hr-management-header h2, .hr-dashboard-header h2, .hr-form-header h2 {
    margin: 0 0 10px 0;
    font-size: 2em;
    font-weight: 700;
}

.hr-admin-header p, .hr-booking-header p, .hr-showcase-header p, .hr-bookings-header p, .hr-dashboard-header p, .hr-form-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

/* Form Styles */
.hr-form-section {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.hr-form-section h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hr-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.hr-form-group {
    display: flex;
    flex-direction: column;
}

.hr-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
}

.hr-input, .hr-select, .hr-textarea {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.hr-input:focus, .hr-select:focus, .hr-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.hr-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Button Styles */
.hr-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

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

.hr-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.hr-btn-secondary {
    background: #718096;
    color: white;
}

.hr-btn-secondary:hover {
    background: #4a5568;
}

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

.hr-btn-danger:hover {
    background: #c53030;
}

.hr-btn-info {
    background: #3182ce;
    color: white;
}

.hr-btn-small {
    padding: 8px 15px;
    font-size: 12px;
}

.hr-btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.hr-form-actions {
    text-align: center;
    padding: 20px 0 10px 0;
}

/* Stats Grid */
.hr-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.hr-stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.hr-stat-card:hover {
    transform: translateY(-5px);
}

.hr-stat-icon {
    font-size: 2.5em;
    opacity: 0.8;
}

.hr-stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.8em;
    font-weight: 700;
    color: #2d3748;
}

.hr-stat-content p {
    margin: 0 0 5px 0;
    color: #718096;
    font-weight: 600;
}

.hr-stat-trend {
    font-size: 0.9em;
    color: #48bb78;
    font-weight: 600;
}

/* Room Selection */
.hr-rooms-selection {
    display: grid;
    gap: 15px;
}

.hr-room-option {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hr-room-option:hover {
    border-color: #667eea;
    transform: translateX(5px);
}

.hr-room-option label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    margin: 0;
}

.hr-room-option input[type="radio"] {
    margin-top: 5px;
}

.hr-room-info {
    flex: 1;
}

.hr-room-info strong {
    display: block;
    margin-bottom: 5px;
    color: #2d3748;
    font-size: 1.1em;
}

.hr-room-type-badge {
    background: #edf2f7;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.hr-room-price {
    color: #667eea;
    font-weight: 700;
    margin: 5px 0;
}

.hr-room-amenities {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

/* Price Summary */
.hr-price-summary {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #48bb78;
}

.hr-price-summary h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
}

.hr-price-details {
    font-size: 1.1em;
}

/* Booking Success */
.hr-booking-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.hr-success-message h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.hr-success-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Rooms Grid */
.hr-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.hr-room-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hr-room-card:hover {
    transform: translateY(-5px);
}

.hr-room-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hr-room-image-placeholder {
    font-size: 4em;
    color: white;
    opacity: 0.8;
}

.hr-room-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    color: white;
}

.hr-room-status.available {
    background: #48bb78;
}

.hr-room-status.occupied {
    background: #e53e3e;
}

.hr-room-content {
    padding: 20px;
}

.hr-room-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.hr-room-header h3 {
    margin: 0;
    flex: 1;
    color: #2d3748;
}

.hr-room-number {
    background: #edf2f7;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
}

.hr-room-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.hr-room-type, .hr-room-guests {
    background: #f7fafc;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.9em;
    color: #4a5568;
}

.hr-room-amenities {
    margin-bottom: 20px;
}

.hr-room-amenities p {
    margin: 5px 0 0 0;
    color: #718096;
    font-size: 0.9em;
}

.hr-room-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hr-room-price strong {
    color: #2d3748;
    font-size: 1.2em;
}

.hr-room-price small {
    display: block;
    color: #718096;
    font-size: 0.8em;
}

/* Tables */
.hr-bookings-table-container, .hr-rooms-table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hr-bookings-table, .hr-rooms-table {
    width: 100%;
    border-collapse: collapse;
}

.hr-bookings-table th, .hr-rooms-table th {
    background: #f7fafc;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
}

.hr-bookings-table td, .hr-rooms-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.hr-bookings-table tr:hover, .hr-rooms-table tr:hover {
    background: #f7fafc;
}

/* Status Badges */
.hr-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hr-status-confirmed {
    background: #bee3f8;
    color: #2b6cb0;
}

.hr-status-checked-in {
    background: #c6f6d5;
    color: #276749;
}

.hr-status-checked-out {
    background: #e9d8fd;
    color: #6b46c1;
}

.hr-status-cancelled {
    background: #fed7d7;
    color: #c53030;
}

.hr-status-available {
    background: #c6f6d5;
    color: #276749;
}

.hr-status-occupied {
    background: #fed7d7;
    color: #c53030;
}

/* Action Buttons */
.hr-action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.hr-status-select {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8em;
    background: white;
}

/* Quick Actions */
.hr-quick-actions {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.hr-action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.hr-action-card {
    background: #f7fafc;
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hr-action-card:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-3px);
    color: #4a5568;
    text-decoration: none;
}

.hr-action-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.hr-action-text {
    font-weight: 600;
}

/* Dashboard Layout */
.hr-dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.hr-content-left, .hr-content-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.hr-widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hr-widget h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Room Type Stats */
.hr-room-type-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hr-room-type-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hr-room-type-name {
    flex: 1;
    font-weight: 600;
    color: #4a5568;
}

.hr-room-type-count {
    color: #718096;
    font-size: 0.9em;
}

.hr-progress-bar {
    flex: 2;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.hr-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Recent Bookings */
.hr-recent-bookings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hr-booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.hr-booking-item:last-child {
    border-bottom: none;
}

.hr-booking-item strong {
    color: #2d3748;
}

.hr-booking-item span {
    color: #718096;
    font-size: 0.9em;
}

/* Receipt Styles */
.hr-receipt-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.hr-receipt {
    max-width: 800px;
    margin: 0 auto;
}

.hr-receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.hr-receipt-hotel-info h2 {
    margin: 0 0 10px 0;
    color: #2d3748;
}

.hr-receipt-contact, .hr-receipt-address {
    margin: 5px 0;
    color: #718096;
}

.hr-receipt-title h1 {
    margin: 0;
    color: #2d3748;
    text-align: right;
}

.hr-receipt-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.hr-receipt-body {
    line-height: 1.6;
}

.hr-receipt-section {
    margin-bottom: 25px;
}

.hr-receipt-section h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hr-receipt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.hr-receipt-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f7fafc;
}

.hr-receipt-payment {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
}

.hr-receipt-payment-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.hr-receipt-payment-row:last-child {
    border-bottom: none;
}

.hr-receipt-total {
    font-size: 1.2em;
    font-weight: 700;
    color: #2d3748;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #e2e8f0;
}

.hr-receipt-policies {
    background: #fffaf0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #dd6b20;
    white-space: pre-line;
}

.hr-receipt-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.hr-receipt-thankyou {
    color: #718096;
    font-style: italic;
}

/* Empty States */
.hr-no-rooms, .hr-no-data, .hr-loading-rooms {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.hr-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hr-empty-icon {
    font-size: 3em;
    opacity: 0.5;
}

/* Error Messages */
.hr-error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #e53e3e;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hr-dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .hr-form-grid {
        grid-template-columns: 1fr;
    }
    
    .hr-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hr-receipt-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .hr-receipt-title {
        text-align: center;
    }
    
    .hr-action-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .hr-room-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .hr-success-actions {
        flex-direction: column;
    }
}

/* Print Styles for Receipt */
@media print {
    .hr-booking-success .hr-success-actions,
    .hr-admin-header,
    .hr-booking-header {
        display: none !important;
    }
    
    .hr-receipt-container {
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
    
    .hr-receipt {
        max-width: none;
    }
}