/* GUESTS MANAGEMENT & LOYALTY SYSTEM STYLES */

.guests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.guests-header h1 {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #1e293b;
    font-size: 1.8rem;
}

.guests-header h1 i {
    color: #3b82f6;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* Filters */
.guests-filters {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.search-box i {
    color: #64748b;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #e2e8f0;
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
}

.filter-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
}

.filter-group input[type="text"] {
    margin-top: 5px;
}

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

.guest-stat {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

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

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.stat-icon.total { background: #3b82f6; }
.stat-icon.in-hotel { background: #8b5cf6; }
.stat-icon.vip { background: #f59e0b; }
.stat-icon.loyalty { background: #10b981; }
.stat-icon.birthday { background: #ec4899; }

.stat-info h4 {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-info .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
}

/* Guests Grid */
.guests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.guest-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.guest-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.guest-card.vip {
    border-top: 5px solid #f59e0b;
}

.guest-card.loyalty {
    border-top: 5px solid #10b981;
}

.guest-card.checkin {
    border-top: 5px solid #8b5cf6;
}

.guest-header {
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.guest-avatar {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 15px;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.guest-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.guest-email {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.guest-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-vip {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.badge-loyalty {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.badge-checkin {
    background: rgba(139, 92, 246, 0.9);
    color: white;
}

.guest-content {
    padding: 25px;
}

.guest-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.guest-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.guest-detail:last-child {
    border-bottom: none;
}

.detail-label {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
}

.loyalty-info {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.loyalty-level {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.level-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.level-badge.bronze { background: #92400e; color: white; }
.level-badge.silver { background: #6b7280; color: white; }
.level-badge.gold { background: #b45309; color: white; }
.level-badge.platinum { background: #1e40af; color: white; }

.points-progress {
    margin-top: 10px;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
}

.guest-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.guest-action-btn {
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.action-view {
    background: #3b82f6;
    color: white;
}

.action-checkin {
    background: #10b981;
    color: white;
}

.action-view:hover {
    background: #2563eb;
}

.action-checkin:hover {
    background: #059669;
}

/* Form Tabs */
.form-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
}

.tab-btn {
    padding: 12px 24px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px 6px 0 0;
    color: #475569;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #e2e8f0;
}

.tab-btn.active {
    background: #3b82f6;
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loyalty Card */
.loyalty-status {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.loyalty-card-preview {
    perspective: 1000px;
}

.loyalty-card {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    box-shadow: 0 10px 25px rgba(146, 64, 14, 0.3);
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.loyalty-card:hover {
    transform: rotateY(10deg);
}

.loyalty-card.silver {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    box-shadow: 0 10px 25px rgba(107, 114, 128, 0.3);
}

.loyalty-card.gold {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    box-shadow: 0 10px 25px rgba(180, 83, 9, 0.3);
}

.loyalty-card.platinum {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

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

.card-header i {
    font-size: 1.5rem;
}

.card-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
}

.guest-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.member-id {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.member-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.points {
    font-size: 1rem;
    font-weight: 600;
}

.expiry-date {
    font-size: 0.8rem;
    opacity: 0.8;
    text-align: center;
}

/* Quick Check-in/out */
.quick-actions-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
}

.quick-tab {
    flex: 1;
    padding: 12px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px 6px 0 0;
    color: #475569;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}

.quick-tab:hover {
    background: #e2e8f0;
}

.quick-tab.active {
    background: #3b82f6;
    color: white;
}

.quick-form {
    display: none;
}

.quick-form.active {
    display: block;
    animation: fadeIn 0.3s;
}

.search-guest {
    display: flex;
    gap: 10px;
}

.search-guest input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.btn-small {
    padding: 12px 15px;
    background: #3b82f6;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guest-results {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-top: 10px;
    display: none;
}

.guest-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.3s;
}

.guest-result-item:hover {
    background: #f8fafc;
}

.guest-result-item:last-child {
    border-bottom: none;
}

.full-width {
    width: 100%;
    margin-top: 20px;
}

/* Benefits & Preferences */
.benefits-checkboxes,
.preferences-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    transition: all 0.3s;
}

.checkbox-label:hover {
    background: #e2e8f0;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

/* Document Upload */
.document-upload {
    margin-top: 10px;
}

.document-upload .upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8fafc;
}

.document-upload .upload-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.document-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.document-preview img {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

/* Price Summary */
.price-summary {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.price-summary h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #1e293b;
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.price-row.total {
    border-bottom: none;
    border-top: 2px solid #e2e8f0;
    padding-top: 15px;
    margin-top: 5px;
    font-size: 1.2rem;
}

.invoice-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* Guest Detail View */
.guest-detail-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.guest-detail-sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    color: white;
    text-align: center;
}

.guest-detail-avatar {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #3b82f6;
    margin: 0 auto 20px;
    border: 5px solid rgba(255, 255, 255, 0.3);
}

.guest-detail-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
}

.detail-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

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

.detail-label {
    color: #64748b;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
}

.stay-history {
    max-height: 300px;
    overflow-y: auto;
}

.stay-item {
    padding: 15px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid #3b82f6;
}

.stay-item:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .loyalty-status {
        grid-template-columns: 1fr;
    }
    
    .guest-detail-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .guests-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filter-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .guests-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .guests-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .guests-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .form-tabs,
    .quick-actions-tabs {
        flex-wrap: wrap;
    }
    
    .benefits-checkboxes,
    .preferences-checkboxes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .guests-stats {
        grid-template-columns: 1fr;
    }
    
    .guest-stat {
        flex-direction: column;
        text-align: center;
    }
    
    .guest-actions {
        grid-template-columns: 1fr;
    }
    
    .search-guest {
        flex-direction: column;
    }
}