@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* ============ ADMIN STYLES ============ */
.cardapio-admin-container {
    font-family: 'Poppins', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cardapio-header {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 30px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.3);
}

.cardapio-header h1 {
    margin: 0;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: white;
    color: #2ecc71;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-success:hover {
    background: #27ae60;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-edit {
    background: #e67e22; /* laranja */
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-edit:hover {
    background: #d35400; /* laranja escuro */
}

/* Formulário */
.cardapio-form {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.cardapio-form h2 {
    margin: 0 0 25px 0;
    color: #2c3e50;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2ecc71;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* Lista de Cardápios */
.cardapio-lista {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cardapio-lista h2 {
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.cardapio-item {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.cardapio-item:hover {
    border-color: #2ecc71;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.item-date {
    font-size: 18px;
    font-weight: 600;
    color: #2ecc71;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.item-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    color: #2c3e50;
}

.item-field {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.item-field strong {
    display: block;
    margin-bottom: 5px;
    color: #7f8c8d;
    font-size: 14px;
}

/* ============ VISUALIZAÇÃO STYLES ============ */
.cardapio-digital {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    padding: 30px 15px;
    color: #2c3e50;
    min-height: 100vh;
}

.cardapio-container {
    width: 95%;
    max-width: 800px;
    margin: 0 auto;
    background: #f1fbfa;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

.cardapio-header-view {
    background: #2ecc71;
    color: #fff;
    padding: 12px 16px; /* reduzido para diminuir espaço superior/inferior */
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cardapio-data {
    font-size: 22px;
    font-weight: 600;
    color: #2ecc71;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.cardapio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.cardapio-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cardapio-section:hover {
    transform: translateY(-3px);
}

.section-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #e67e22;
    font-size: 20px;
}

.prato {
    font-size: 16px;
    color: #e67e22;
    font-weight: 600;
    margin: 5px 0;
    line-height: 1.5;
}

.no-menu-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 22px;
    color: #7f8c8d;
}

.no-menu-message i {
    font-size: 60px;
    color: #2ecc71;
    margin-bottom: 20px;
    display: block;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: #2ecc71;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #2ecc71;
    color: #8e4305;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background: #2ecc71;
}

/* Responsive */
@media (max-width: 768px) {
    .cardapio-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .form-row,
    .item-content {
        grid-template-columns: 1fr;
    }

    .cardapio-grid {
        grid-template-columns: 1fr;
    }

    .swiper-button-next {
        right: 10px;
    }

    .swiper-button-prev {
        left: 10px;
    }
}