/* Estilos compartilhados do módulo Alimentação */
/* Reutiliza base do financas-compact.css */

:root {
    --primary-color: #f39c12;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
}

/* Cards de resumo */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary-color);
}

.summary-card.vencidos {
    border-left-color: var(--danger-color);
}

.summary-card.proximos {
    border-left-color: var(--warning-color);
}

.summary-card h3 {
    font-size: 0.875rem;
    color: #718096;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.summary-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
}

/* Estilos para seção de ingredientes em produtos */
.ingrediente-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.ingrediente-row select,
.ingrediente-row input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
}

.ingrediente-row select:focus,
.ingrediente-row input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.1);
}

.btn-remove-ingrediente {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.2s;
}

.btn-remove-ingrediente:hover {
    background: #c0392b;
}

#adicionar-ingrediente {
    margin-top: 10px;
    background: var(--success-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

#adicionar-ingrediente:hover {
    background: #229954;
}

/* Estilos para seleção de ingredientes cadastrados */
.ingrediente-select-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.ingrediente-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.875rem;
    background: white;
    color: #4a5568;
}

.ingrediente-select:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.ingrediente-separator {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 500;
    white-space: nowrap;
}

.ingrediente-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ingrediente-row .ingrediente-inputs {
    display: grid;
    grid-template-columns: 1fr 80px 120px 40px;
    gap: 10px;
    align-items: center;
}

.ingrediente-row:hover {
    border-color: #f39c12;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.1);
}

.ingrediente-nome {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.ingrediente-nome:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.ingrediente-quantidade {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.875rem;
    text-align: center;
}

.ingrediente-quantidade:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.ingrediente-unidade {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.875rem;
    background: white;
}

.ingrediente-unidade:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.btn-remove-ingrediente {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.btn-remove-ingrediente:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.btn-add-ingrediente {
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-add-ingrediente:hover {
    background: #229954;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Badges de status */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.vencido {
    background: #fee;
    color: #c53030;
}

.badge.proximo {
    background: #fef5e7;
    color: #d68910;
}

.badge.normal {
    background: #e6f7ef;
    color: #27ae60;
}

/* Controles de quantidade */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #cbd5e0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #4a5568;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #f7fafc;
    border-color: #4a5568;
}

.quantity-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
}

/* Ingredientes dinâmicos (receitas) */
.ingrediente-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 40px;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.btn-remove-ingrediente {
    background: #fee;
    color: #c53030;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-ingrediente:hover {
    background: #fbb;
}

.btn-add-ingrediente {
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-add-ingrediente:hover {
    background: #229954;
}

/* Lista de receitas */
.receitas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.receita-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

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

.receita-card h3 {
    margin: 0 0 15px 0;
    color: #1a202c;
    font-size: 1.25rem;
}

.receita-ingredientes {
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.receita-preparo {
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 15px;
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.receita-actions {
    display: flex;
    gap: 10px;
}

/* Abas de configurações */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 0.938rem;
    font-weight: 500;
    color: #718096;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: #4a5568;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

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

/* Lista de configurações */
.config-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

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

.config-item-name {
    font-weight: 500;
    color: #1a202c;
}

.config-item-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: #f7fafc;
}

/* Subcategorias na configuração */
.subcategorias-list {
    margin-left: 20px;
    margin-top: 10px;
}

.subcategoria-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 0.875rem;
}

/* Estilos para ofertas */
.oferta-row {
    margin-bottom: 10px;
}

.oferta-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}

.oferta-fields input,
.oferta-fields select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-remove-oferta {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 32px;
}

.btn-remove-oferta:hover {
    background: #c0392b;
}

/* Modal maior para produtos */
.modal-large {
    max-width: 900px !important;
    max-height: 95vh !important;
}

.modal-large .modal-body {
    max-height: calc(95vh - 200px);
    overflow-y: auto;
}

/* Botão flutuante com menu */
.floating-menu {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-menu-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(243, 156, 18, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-menu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
}

.floating-menu-items {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.floating-menu-items.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-menu-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}

.floating-menu-item:hover {
    background: #f8f9fa;
    color: #f39c12;
}

.floating-menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.floating-menu-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Badges para tipos de local */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: #3498db;
    color: white;
}

.badge-success {
    background: #27ae60;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.badge-warning {
    background: #f39c12;
    color: white;
}

.badge-danger {
    background: #e74c3c;
    color: white;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

.badge-dark {
    background: #343a40;
    color: white;
}


