:root {
    --primary-color: #E31E24;
    --primary-dark: #C41E24;
    --primary-light: #FF5A5F;
    --background-color: #FFF5F5;
    --text-color: #333;
    --card-background: #fff;
    --icon-background: #FFE5E5;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #f44336;
    --info-color: #2196F3;
}

/* Layout Base */
body {
    margin: 0;
    padding: 0;
    font-family: 'iFood RC Textos', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

* {
    font-family: 'iFood RC Textos', sans-serif;
}
body {
    font-family: 'iFood RC Textos', sans-serif;
    background-color: #f8f9fa;
}

/* Dashboard Layout */

/* Header Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
}

/* Table Styles */
.table-responsive {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* Card Styles */
.card {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
.endereco_entrega{
    float: right;
    margin-top: -20px;

    
    
}.endereco_entrega a {
    float: right;
    /* margin-left: 75px; */
    margin-top: 27px;
    padding: 3px 8px;
    color: #000000;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
}
.endereco_entrega img {
    float: right;
    margin-top: -10px;
    margin-left: 5px;
   
    
}

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(to right, #f9f9f9, #ffffff);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 6px;
}

.form-label {
    font-weight: 500;
}

/* Image Thumbnails */
.img-thumbnail {
    border-radius: 8px;
    transition: transform 0.2s;
}

.img-thumbnail:hover {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    border-radius: 6px;
    padding: 8px 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-dark);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline-danger {
    transition: all 0.3s;
}

/* Complementos Section */
.complemento-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Ingredientes Section */
.ingrediente-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Price Inputs */
.preco-complemento {
    max-width: 120px;
}

/* Alerts */
.alert {
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding: 20px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .table-responsive {
        font-size: 14px;
    }
}

/* Modal Styles */
.modal-content {
    border-radius: 8px;
    border: none;
}

.modal-header {
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

/* Badge Styles */
.badge {
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    margin: 4px 0;
    background-color: #dc3545e3;
    color: #ffc107;
}

.quantidade-controles {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-quantidade {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-quantidade:hover {
    background: #f5f5f5;
}
.quantidade {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.carrinho-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-nome {
    min-width: 120px;
}

.item-preco {
    font-weight: bold;
    min-width: 80px;
    text-align: right;
}

.carrinho-total {
    margin-top: 20px;
    text-align: right;
    font-size: 1.2em;
}

/* Header e Navegação */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 18px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    position: relative;
    top: 0;
    z-index: 10;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Botões e Inputs */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-dark);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge.disponivel {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.status-badge.indisponivel {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--danger-color);
}

/* Tabelas Responsivas */
.tabela-responsiva {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.tabela {
    width: 100%;
    border-collapse: collapse;
}

.tabela th,
.tabela td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* Alertas */
.alerta {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alerta-sucesso {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.alerta-erro {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

/* Grid de Cards para Mobile */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Responsividade */
@media (max-width: 768px) {
    .d-md-none {
        display: none !important;
    }
    
    .grid-cards {
        grid-template-columns: 1fr;
    }
}

/* Drag and Drop */
.drag-handle {
    cursor: move;
    padding: 8px;
    text-align: center;
}

.drag-handle i {
    transition: color 0.2s ease;
}

.drag-handle:hover i {
    color: var(--primary-color) !important;
}

/* Menu Lateral e Mobile */
.menu-lateral {
    width: 250px;
    background: var(--card-background);
    padding: 20px;
    height: 100vh;
    
    left: 0;
    top: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.menu-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-background);
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .menu-lateral {
        display: none;
    }
    
    .menu-mobile {
        display: flex;
        justify-content: space-around;
    }
    
    .conteudo-principal {
        margin-left: 0;
        padding-bottom: 70px;
    }
}

        body {
            font-family: 'iFood RC Textos', sans-serif;
            background-color: #f8f9fa;
            margin: 0;
            padding: 0;
            color: #333;
        }
        
        .header {
            background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
            color: white;
            padding: 18px 0;
            box-shadow: 0 2px 15px rgba(0,0,0,0.15);
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .header h1 {
            margin: 0;
            font-size: 26px;
            font-weight: 800;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
            letter-spacing: 0.5px;
        }
        
        .header h1 {
            margin: 0;
            font-size: 26px;
            font-weight: 700;
        }
        
        .pedidos-lista {
            max-width: 1200px;
           
        }
        
        .pedido-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.08);
            
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid rgba(0,0,0,0.05);
        }
        
        .pedido-card:hover {
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
            transform: translateY(-3px);
        }
        
        .pedido-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            border-radius: 8px 8px 0 0;
            transition: all 0.3s ease;
        }
        
        .pedido-header h3 {
            margin: 0;
            font-size: 20px;
            color: #333;
            display: flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, #f9f9f9 0%, #eaeaea 100%);
            padding: 8px 15px;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        
        .pedido-numero {
            font-weight: bold;
            color: #555;
            letter-spacing: 0.5px;
        }
        
        .status-icon {
            font-size: 1.2em;
        }
        
        .pendente-icon {
            color: #ffc107;
        }
        
        .preparo-icon {
            color: #ff4444;
        }
        
        .entrega-icon {
            color: #2196f3;
        }
        
        .concluido-icon {
            color: #4caf50;
        }
        
        .pedido-detalhes {
            padding: 20px;
        }
        
        .produtos-lista {
            margin-bottom: 20px;
        }
        
        .produtos-lista h4 {
            margin-top: 0;
            margin-bottom: 15px;
            color: #333;
            font-size: 18px;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }
        
        .produtos-lista ul {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }
        
        .produto-item {
            display: flex;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
            gap: 15px;
            align-items: center;
        }
        
        .produto-imagem {
            width: 70px;
            height: 70px;
            border-radius: 8px;
            overflow: hidden;
            background: #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        .produto-imagem img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .no-imagem {
            font-size: 24px;
            color: #aaa;
        }
        
        .produto-detalhes {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .produto-nome-preco {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
        }
        
        .produto-nome {
            font-weight: 700;
            font-size: 16px;
            margin-bottom: 5px;
            color: #333;
            letter-spacing: 0.3px;
        }
        
        .produto-preco {
            font-weight: 600;
            color: #e53935;
            font-size: 16px;
        }
        
        .produto-descricao {
            font-size: 14px;
            color: #666;
            margin-bottom: 8px;
            font-style: italic;
            line-height: 1.4;
        }
        
        .produto-qtd-container {
            display: flex;
            align-items: center;
        }
        
        .produto-qtd-label {
            color: #666;
            font-size: 14px;
            margin-right: 5px;
        }
        
        .produto-qtd {
            color: #333;
            font-weight: 600;
            background: #f0f0f0;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 14px;
        }
        
        .pedido-info {
          
            background: #f9f9f9;
           
        }
        
        .pedido-info p {
            margin: 5px 0;
            font-size: 15px;
        }
        
        .filtros {
            margin: 0;
        }

        .form-select {
            padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
   
    font-size: 15px;
  
    font-weight: 600;
   
        }
        
        .form-select:hover, .form-select:focus {
            background-color: rgba(255,255,255,0.3);
            outline: none;
        }
        
        .contador-status {
            display: inline-block;
            background-color: rgba(255,255,255,0.2);
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            text-align: center;
            line-height: 20px;
            font-size: 12px;
            margin-left: 5px;
        }
        
        .status-controls {
      display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    /* display: inline-block; */
    flex-direction: row;
    flex-wrap: wrap;
    align-content: space-between;
    justify-content: flex-end;
        }

        .status-select {
            padding: 8px;
            border-radius: 4px;
            border: 1px solid #ddd;
            background-color: white;
            font-size: 14px;
        }

        .status-select option[value="pendente"]::before {
            content: "⏳ ";
            font-family: "Font Awesome 5 Free";
            color: #ffa500;
            margin-right: 8px;
        }

        .status-select option[value="preparo"]::before {
            content: "🔥 ";
            font-family: "Font Awesome 5 Free";
            color: #ff4444;
            margin-right: 8px;
        }

        .status-select option[value="entrega"]::before {
            content: "🛵 ";
            font-family: "Font Awesome 5 Free";
            color: #4285f4;
            margin-right: 8px;
        }

        .status-select option[value="concluido"]::before {
            content: "✅ ";
            font-family: "Font Awesome 5 Free";
            color: #00c851;
            margin-right: 8px;
        }

        .status-select option[value="pendente"] {
            background-color: #fff3e0;
        }

        .status-select option[value="preparo"] {
            background-color: #ffebee;
        }

        .status-select option[value="entrega"] {
            background-color: #e3f2fd;
        }

        .status-select option[value="concluido"] {
            background-color: #e8f5e9;
        }

        /* Status color indicators */
        [data-status="pendente"] .pedido-header {
            border-left: 50px solid #FF9800;
            background: linear-gradient(to right, rgba(255, 152, 0, 0.05), #FF9800);
        }
        
       

        /* Colors for status options */
        .status-select option[value="pendente"] { color: #FF9800; }
        .status-select option[value="preparo"] { color: #2196F3; }
        .status-select option[value="entrega"] { color: #9C27B0; }
        .status-select option[value="concluido"] { color: #4CAF50; }
        
        /* Adiciona estilo para feedback visual ao atualizar status */
        .status-atualizado {
            animation: pulsar 2s ease;
        }
        
        @keyframes pulsar {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
            50% { transform: scale(1.01); box-shadow: 0 0 0 15px rgba(0, 123, 255, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
        }
        
        .tempo-decorrido {
            font-style: italic;
            color: #666;
            margin-left: 5px;
        }
        
        .cliente-info {
               /* margin-top: 20px; */
    /* padding-top: 15px; */
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column-reverse;
    background: #f9f9f9;
    padding: 0px 0px;
    border-radius: 8px;
    align-content: stretch;
    align-items: stretch;
    justify-content: space-around;
        }
        
        .cliente-info p {
            margin: 5px 0;
            font-size: 15px;
        }
        
        .horario-icon {
            color: #666;
            margin-right: 5px;
        }

/* Estilos para cabeçalho de pedidos */
.pedido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    background:#e9ecef;
}

/* Estilo específico para pedidos pendentes */
.pedido-card[data-status="pendente"] .pedido-header {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    animation: pulse 2s infinite;
}

/* Animação de pulso para chamar atenção */
@keyframes pulse {
    0% {
        background-color: #fff3cd;
    }
    50% {
        background-color: #ffe7a0;
    }
    100% {
        background-color: #fff3cd;
    }
}

/* Estilo para os outros status */
.pedido-card[data-status="aguardando"] .pedido-header {
   
    border-top: 12px solid #ff6944;
}   

.pedido-card[data-status="preparo"] .pedido-header {
   
    border-top: 12px solid #ff4444;
}   

.pedido-card[data-status="entrega"] .pedido-header {
    border-top: 12px solid #4486ff;
    
}

.pedido-card[data-status="concluido"] .pedido-header {
   
    border-top: 12px solid #4caf50;
}

/* Estilos para os ícones de status */
.pedido-header .status-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.pendente-icon {
    color: #ffc107;
}

.preparo-icon {
    color: #ff4444;
}

.entrega-icon {
    color: #2196f3;
}

.concluido-icon {
    color: #4caf50;
}

/* Estilos para o select de status */
.status-select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 14px;
}

.pedido-numero {
    font-weight: bold;
    color: #555;
}

.tempo-decorrido {
    font-weight: 500;
    margin-left: 5px;
}

.tempo-recente {
    color: #28a745;
    animation: pulse 2s infinite;
}

.tempo-medio {
    color: #ffc107;
}

.tempo-antigo {
    color: #dc3545;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.horario-icon {
    color: #6c757d;
    margin-right: 5px;
}

.tempo-recente {
    color: #ff4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.horario-icon {
    color: #666;
    margin-right: 5px;
}
