/* Meal Selection Drawer - Global Styles */

/* Backdrop */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    animation: fadeIn 0.2s ease-out;
}

/* Drawer Panel */
.drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 500px;
    max-width: 90vw;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 1055;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease-out;
}

/* Header */
.drawer-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Search */
.drawer-search {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
}

.drawer-search .input-group-text {
    border-right: 0;
}

.drawer-search .form-control {
    border-left: 0;
}

.drawer-search .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

/* Filters */
.drawer-filters {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

/* Content */
.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}

/* Meal List */
.meal-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meal-card {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: white;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meal-card:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.meal-info {
    flex: 1;
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .drawer-panel {
        width: 100%;
        max-width: 100%;
    }
}
