/* Loading Indicators */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.loading-indicator.hidden {
    display: none;
}

/* Spinner Animation */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Error Messages */
.error-message-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 12px;
    margin: 2rem 0;
    color: #c53030;
}

.error-message-container.hidden {
    display: none;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-message-container h3 {
    color: #c53030;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.error-message-container p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.retry-button {
    background: #c53030;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.retry-button:hover {
    background: #9b2c2c;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.empty-state.hidden {
    display: none;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid Container Adjustments */
.packages-grid,
.extras-grid {
    transition: opacity 0.3s ease;
}

.packages-grid.loading,
.extras-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Modal Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.action-buttons .btn-primary {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-buttons .btn-primary:first-child {
    background: #28a745;
    color: white;
}

.action-buttons .btn-primary:first-child:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.action-buttons .btn-primary:last-child {
    background: #25d366;
    color: white;
}

.action-buttons .btn-primary:last-child:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.action-buttons .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Preview Modal Enhancements */
.preview-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.preview-actions .btn-secondary {
    align-self: center;
    padding: 0.5rem 1.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.preview-actions .btn-secondary:hover {
    background: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    .loading-indicator,
    .error-message-container,
    .empty-state {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn-primary {
        min-width: auto;
        width: 100%;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-state h3 {
        font-size: 1.3rem;
    }
    
    .empty-state p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .loading-indicator,
    .error-message-container,
    .empty-state {
        padding: 1.5rem 0.75rem;
    }
    
    .spinner {
        width: 35px;
        height: 35px;
    }
    
    .loading-text {
        font-size: 0.9rem;
    }
}