/* Enhanced Bellhop Assignment Styles */

/* Main container improvements */
.bellhop-assignment-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.assignment-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 150px;
    flex: 1;
}

.stat-card i {
    font-size: 24px;
    color: #ffd700;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced table styles */
.assignment-table-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bellhop-assignment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bellhop-assignment-table thead {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.bellhop-assignment-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #34495e;
}

.bellhop-assignment-table th i {
    margin-right: 8px;
    color: #3498db;
}

.bellhop-assignment-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.bellhop-assignment-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bellhop-assignment-table td {
    padding: 15px 12px;
    vertical-align: top;
}

/* Store name styling */
.store-name {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    padding: 15px 12px;
}

.store-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.store-title {
    font-weight: bold;
    color: #1976d2;
    font-size: 16px;
    flex: 1;
}

.store-cluster {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.store-address {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-address i {
    color: #2196f3;
    width: 12px;
}

.store-slots {
    font-size: 12px;
    color: #666;
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
}

.store-slots i {
    color: #2196f3;
}

/* Modal store info styling */
.store-modal-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-modal-name {
    font-weight: bold;
    font-size: 16px;
    color: #212529;
}

.store-modal-cluster {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.store-modal-cluster i {
    color: #ff9800;
}

.store-modal-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.store-modal-address i {
    color: #2196f3;
}

/* Bellhop search styling */
.bellhop-search-container {
    margin-bottom: 15px;
}

.bellhop-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.bellhop-search-input:focus {
    outline: none;
    border-color: #2196f3;
    background: white;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.bellhop-search-input::placeholder {
    color: #999;
    font-style: italic;
}

/* Day card styling */
.day-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
}

.day-card.monday { background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%); color: #2e7d32; }
.day-card.tuesday { background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%); color: #f57c00; }
.day-card.wednesday { background: linear-gradient(135deg, #f3e5f5 0%, #ce93d8 100%); color: #7b1fa2; }
.day-card.thursday { background: linear-gradient(135deg, #e1f5fe 0%, #81d4fa 100%); color: #0277bd; }
.day-card.friday { background: linear-gradient(135deg, #fff8e1 0%, #ffb74d 100%); color: #ef6c00; }
.day-card.weekend { background: linear-gradient(135deg, #ffebee 0%, #ef5350 100%); color: #c62828; }

.day-name {
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-number {
    font-size: 18px;
    font-weight: bold;
    margin-top: 2px;
}

/* Time slot card */
.time-slot-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.time-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.time-start, .time-end {
    font-weight: bold;
    color: #2c3e50;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.time-range i {
    color: #3498db;
    font-size: 10px;
}

.time-duration {
    font-size: 11px;
    color: #666;
    background: #e3f2fd;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
}

/* Bellhop grid and cards */
.bellhop-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 300px;
}

.bellhop-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    min-width: 140px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.bellhop-card.online {
    border-left: 4px solid #4caf50;
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
}

.bellhop-card.offline {
    border-left: 4px solid #ff9800;
    background: linear-gradient(135deg, #fff3e0 0%, #fef7e0 100%);
}

.bellhop-card.inactive {
    border-left: 4px solid #f44336;
    background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
    opacity: 0.7;
}

.bellhop-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

.status-indicator.online i { color: #4caf50; }
.status-indicator.offline i { color: #ff9800; }
.status-indicator.inactive i { color: #f44336; }

.bellhop-info {
    flex: 1;
    min-width: 0;
}

.bellhop-name {
    font-weight: bold;
    font-size: 13px;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bellhop-email {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bellhop-status {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.bellhop-card.online .bellhop-status { color: #4caf50; }
.bellhop-card.offline .bellhop-status { color: #ff9800; }
.bellhop-card.inactive .bellhop-status { color: #f44336; }

.no-bellhops {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-style: italic;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 6px;
    border: 1px dashed #ddd;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 6px;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-content i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.empty-content h3 {
    margin: 0 0 10px 0;
    color: #999;
}

.empty-content p {
    margin: 0 0 20px 0;
    color: #bbb;
}

/* Search and filter controls */
.assignment-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-input-group i {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 10px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    color: white;
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-clear {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.search-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-filter {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-filter:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.btn-filter.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.action-controls {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Modal styles for assignment editing */
.assignment-modal {
    max-width: 800px;
    width: 90vw;
}

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

.detail-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #007bff;
}

.detail-card h4 {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-card p {
    margin: 0;
    color: #212529;
    font-weight: 500;
}

.bellhop-selection-container {
    margin-top: 20px;
}

.bellhop-selection-container h4 {
    margin: 0 0 15px 0;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bellhop-option {
    position: relative;
    margin-bottom: 10px;
}

.bellhop-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bellhop-option label {
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.bellhop-option.selected label {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    border-color: #007bff !important;
}

.bellhop-option.inactive label {
    opacity: 0.5;
    cursor: not-allowed;
}

.bellhop-option.inactive input[type="checkbox"] {
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
    .assignment-stats {
        flex-direction: column;
    }
    
    .stat-card {
        min-width: auto;
    }
    
    .bellhop-grid {
        max-width: none;
    }
    
    .bellhop-card {
        min-width: 120px;
    }
    
    .day-card {
        min-width: 50px;
    }
    
    .time-slot-card {
        padding: 8px;
    }
    
    .assignment-controls {
        flex-direction: column;
    }
    
    .action-controls {
        justify-content: center;
    }
    
    .search-filters {
        justify-content: center;
    }
    
    .slot-details {
        grid-template-columns: 1fr;
    }
}
